Right... That does make sense except for the "draw the point"... Shouldn't that have an X and Y coordinate?
Or am I reading this wrongly?

Okay. In that case I think you're best off drawing an ordinary ellipse (or possibly a rounded rectangle) but adding some error factor. If you're starting from an ellipse, here's what I'd do:

set a and b to the half-axes of the ellipse (I'm assuming the centre is (0,0))
set errorFactor to some small value
set wobbliness to some very small value
for q varying between 0 and some angle greater than 2*pi (yours seem to go round about three times, so q would go up to about 6*pi)
   set truePoint to (a*sin(q), b*cos(q))
   set normal to (-a*cos(q), b*sin(q))
   draw the point (truePoint + errorFactor * normal)
set errorFactor to errorFactor + some number between -wobbliness and wobbliness

I'll test it out, but that sounds like the right kind of idea to me.

Danny

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to