[PD] specific questions on Gem

Chris McCormick chris at mccormick.cx
Fri Feb 2 02:33:00 CET 2007


On Thu, Feb 01, 2007 at 12:26:22PM +0100, Johannes Eckart wrote:
> hello community of Pure Data!

Hello Johannes,

> i want to design lines and curbes in a Gem-window. the difficulty is, that i want to draw this lines by giving the coordinates directly to the path. maybe for better understanding: i want to create a circle, but he must not appear immediately. he must be drawn like with a pencil.

Try the attached patch I just cooked up. I think it does what you want
using the [repeat] external from zexy.

Best regards,

Chris.

-------------------
chris at mccormick.cx
http://mccormick.cx
-------------- next part --------------
#N canvas 24 341 450 300 10;
#X obj 14 40 gemwin;
#X msg 14 13 create \, 1;
#X obj 17 78 gemhead;
#X floatatom 68 110 5 0 0 0 - - -;
#X obj 17 141 repeat 3;
#X obj 17 251 rotateXYZ 0 0 30;
#X obj 17 193 rectangle 0.2 0.02;
#X text 99 15 Click here first;
#X obj 17 219 translateXYZ 0.2 0 0;
#X obj 17 165 translateXYZ 0.2 0 0;
#X text 163 139 Size of the circle;
#X obj 190 180 nbx 5 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
-262144 -1 -1 16 256;
#X obj 106 138 nbx 5 14 -1e+37 1e+37 0 1 empty empty empty 0 -6 0 10
-262144 -1 -1 0.2 256;
#X text 111 110 Then use this guy to draw the circle;
#X text 248 181 Angle of turning;
#X connect 1 0 0 0;
#X connect 2 0 4 0;
#X connect 3 0 4 1;
#X connect 4 0 9 0;
#X connect 6 0 8 0;
#X connect 8 0 5 0;
#X connect 9 0 6 0;
#X connect 11 0 5 3;
#X connect 12 0 9 1;
#X connect 12 0 6 1;
#X connect 12 0 8 1;


More information about the Pd-list mailing list