creating shape like circle or oval(i wanted to design my own circle shape)

karhong

Member
Joined
Jul 13, 2008
Messages
6
Programming Experience
Beginner
Hi,

I'm trying to draw circle and oval by myself without using ".addEllipse"
Can I draw it by pointer? which mean i point 4 point and then make it to become the shape of circle and oval.
I tried to find solution in the net, but i dont seems to get any solution.

Any Idea?
 
http://en.wikipedia.org/wiki/Ellipse

I initially wrote about the approach I would have taken, then I saw the code at the end of the Wikipedia article and... well... you're better listening to them :eek: !

They split the ellipse into 360 degrees and create triangles for each degree using the two constant points.
 
Last edited:
Back
Top