Jump to content

create circles based on input given on textarea


hguy

Recommended Posts

Hi,

 

  Im long back here for this forum. I like to clarify my doubts on venn diagrams. I need to create circle with values based on the values given in the text area. I can create the venn diagram image using php imagecreate but cant go with the inputs given.

 

  Is it possible to do with the javascript dom. I want to create three circles with the given values in the textarea. The placement of values should change dynamically on the fly. Also the there should be colour variation between circles Reply me ASAP

 

Regards

Hguy

 

 

Link to comment
Share on other sites

Hi,

 

  Im long back here for this forum. I like to clarify my doubts on venn diagrams. I need to create circle with values based on the values given in the text area. I can create the venn diagram image using php imagecreate but cant go with the inputs given.

 

  Is it possible to do with the javascript dom. I want to create three circles with the given values in the textarea. The placement of values should change dynamically on the fly. Also the there should be colour variation between circles Reply me ASAP

 

Regards

Hguy

 

 

 

 

your going to have to try to explain this a little bit better.

Link to comment
Share on other sites

  • 4 weeks later...

Dear guys,

 

      I have created the venn diagram using the php image create with below code

<?php
//$diameter = $_REQUEST["diameter"];
  $diameter = 150;
  if ($im = imagecreate(255, 255))
  $white = imagecolorallocate($im, 255, 255, 255);
  $black = imagecolorallocate($im, 0, 0, 0);
                                                                                                                                                                              	
  imagefill($im, 0, 0, $white);
  imageString($im, 30, 60, 18, "safasfd", $white); 

//imagearc(image, x, y, width,height,start,end , color);
  imagearc($im, $diameter/2, $diameter/2, $diameter, $diameter, 0, 360, $black);
  imagearc($im, 175,  75,$diameter, 150, 0, 360, $black);
  imagearc($im, 125, 160,$diameter, 150, 0, 360, $black);
  header("content-type:image/png");  //This tells the web browser to expect a PNG image.

  imagepng($im);
  imagecolordeallocate($im, $white);
  imagecolordeallocate($im, $black);
  imagedestroy($im);
?> 

 

I gives me the venn diagram... but what i need is, the venn diagram should be placed in new php page like a thumb nail... The venn should be changed dynamically as per the user input values.. How is it possible with  javascript DOM

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.