[PD] Drawing a sine function dynamically in Gem
Patrice Colet
colet.patrice at free.fr
Thu Apr 4 03:50:48 CEST 2013
Hello,
attached patch is inspired from code found in link you provide:
for (int i = 0; i< width; i++){
px2 = width/8 + cos(radians(angle2))*(radius);
py2 = 75 + sin(radians(angle2))*(radius);
point(width/8+radius+i, py2);
angle2 -= frequency2;
}
using Gem and recursion
Colet Patrice
> De: "Alexandros Drymonitis" <adrcki at gmail.com>
> I want to build this visual http://processing.org/learning/trig/ in
> Pd, but I want the sine curve to be drawn dynamically with every
> circle spin. It seems quite hard though.
>
>
> I don't know which object would be best. I tried either [curve] but
> the parameters are way too many and I'm not sure if precision is
> really possible. Then I tried [square 0.008] in combination with
> [repeat] but also doesn't work.
> Anyone knows how to do this?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawSine.pd
Type: text/x-puredata
Size: 1936 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130404/01a4e731/attachment.bin>
More information about the Pd-list
mailing list