944,123 Members | Top Members by Rank

Ad:
Dec 11th, 2006
1

command to draw circle in javascript

Expand Post »
Is there a command to draw a circle in javascript or I have to use only a circle picture?
Also is there a way to arrange many circles randomly in a browser page ,using html/javascript?
Similar Threads
Reputation Points: 20
Solved Threads: 0
Junior Poster in Training
kararu is offline Offline
50 posts
since Sep 2006
Dec 11th, 2006
0

Re: command to draw circle in javascript

You will need to use SVG to do this which is not widely supported yet. So basically you will need to use images.
Moderator
Reputation Points: 161
Solved Threads: 38
He's No Good To Me Dead
stymiee is offline Offline
1,422 posts
since May 2006
Jan 2nd, 2007
0

Re: command to draw circle in javascript

Hi,

Use a transparent background circle image in gif or png format and create many image instance with javascript assigned to the smae source. You can even arrange their radius with using a single image given it has the resolution of the largest circle to avoid aliasing and pixelation effects.

Loren Soth
Reputation Points: 28
Solved Threads: 4
Posting Whiz in Training
Lord Soth is offline Offline
233 posts
since Mar 2006
Jan 25th, 2007
0

Re: command to draw circle in javascript

you can use Open-jACOB Draw2D

seen on [url snipped - this is now a commercial venture]

greetings

FreeGroup
Last edited by Ezzaral; May 20th, 2010 at 3:20 pm. Reason: Snipped url.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
FreeGroup is offline Offline
4 posts
since Jan 2007
May 19th, 2010
0
Re: command to draw circle in javascript
Why not use Javascript's rounded corners capabilities?

Create a square with css then round the corners to the point that it eventually becomes a circle. This way is all made with code and it's more widely supported than trying to use a png.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Leaping Fish is offline Offline
1 posts
since May 2010
May 19th, 2010
0
Re: command to draw circle in javascript
Quote ...
Is there a command to draw a circle in javascript or I have to use only a circle picture?
There are a number of good - and free - javascript plot/graph packages.

Quote ...
Also is there a way to arrange many circles randomly in a browser page ,using html/javascript?
Once you have the circles (whether plots or images), yes. They can even be animated.
http://www.dynamicdrive.com/dynamicindex3/bubble.htm
fxm
Reputation Points: 40
Solved Threads: 74
Posting Pro
fxm is offline Offline
591 posts
since Apr 2010
May 20th, 2010
0
Re: command to draw circle in javascript
Also get into this plug in processing.js

http://processingjs.org/
Reputation Points: 167
Solved Threads: 239
Nearly a Posting Virtuoso
rajarajan07 is offline Offline
1,445 posts
since May 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: tag that shows hand on mouseover
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: to check username validation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC