This here is pretty close on a smaller circle, but here it is with radius 200. This is close enough for my purposes. I know there are reasons people would want drawcurve to curve around the points fed to it, but for drawing a circle of a certain radius, it would be better if it forced the curve to use those points. Unless I'm doing something totally wrong.
-Chuckk
On 5/25/06, Frank Barknecht fbar@footils.org wrote:
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Anyways I attached a circle which is ripped from Miller's scaling example. In its current form it uses features only available in pd-0.39, however the basic approach works for older Pds as well. You just draw a stopping sign, then let the curves of drawcurve/filledcurve transform it into (almost?) a circle.
I forgot to add: The numberbox labelled "radius" is not used to input the actual radius although with a different scaling it can be made to do so.
For simplicity it is scaled by cos(360°/16) which is about 0.92, and sin(360°/16) (about 0.38), which explains the 38 and 92 inside the data structure definition.
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__