1

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?

7
Contributors
6
Replies
7
Views
10 Years
Discussion Span
Last Post by rajarajan07
0

You will need to use SVG to do this which is not widely supported yet. So basically you will need to use images.

0

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

0

you can use Open-jACOB Draw2D

seen on

greetings

FreeGroup

Edited by Ezzaral: Snipped url.

0

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.

0

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.

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.