#N canvas 833 124 742 519 10;
#X declare -lib Gem;
#X obj 93 144 gemhead;
#X obj 93 205 b;
#X obj 93 124 tgl 15 1 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 1 1;
#X obj 93 260 t b a;
#X obj 156 336 unpack 0 0 0;
#X obj 93 385 translateXYZ 0 -2 0;
#X msg 93 225 0 -2 0 \, 0 2 0;
#X text 203 225 two messages in one;
#X text 151 144 [gemhead]-"metro";
#X obj 93 426 circle 0.2;
#X text 40 25 the "double [gemhead] idiom" vs. [repeat];
#X obj 438 146 gemhead;
#X obj 438 128 tgl 15 1 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 1 1;
#X obj 479 375 unpack 0 0 0;
#X text 525 206 two messages in one;
#X obj 479 307 select 0 1;
#X obj 479 284 f;
#X obj 438 404 translateXYZ 0 0 0;
#X obj 438 206 t a a b;
#X obj 438 229 separator;
#X obj 438 257 t a b;
#X msg 497 259 0;
#X msg 479 328 0 -2 0;
#X msg 511 348 0 2 0;
#X obj 508 284 + 1;
#X text 258 65 The gemhead object resets the states for OpenGL and also some pix_ settings. Anything after it is starts as a clean state similar to combining [separator] and [pix_separator]. (cc);
#N canvas 853 316 701 555 more_on_the_"repeat"_technics 0;
#X obj 21 54 gemhead;
#X obj 21 281 separator;
#X obj 21 128 t a b;
#X msg 118 270 seed 1;
#X obj 21 445 translateXYZ;
#X obj 21 470 circle 0.1;
#X obj 118 354 random 200;
#X obj 199 354 random 200;
#X obj 118 376 - 100;
#X obj 199 377 - 100;
#X obj 199 398 / 30;
#X obj 118 397 / 30;
#X msg 199 270 seed 2;
#X obj 21 310 t a b b;
#X obj 118 313 spigot 0;
#X obj 199 312 spigot 0;
#X obj 278 276 tgl 15 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 1;
#X text 311 274 <- if you reset the random at the beginning of each frame \, then all frames look the same.;
#X obj 21 101 scaleXYZ 1 1 1;
#X floatatom 52 80 5 0 0 0 - - - 0;
#X floatatom 95 80 5 0 0 0 - - - 0;
#X text 23 504 This patch shows how to draw the same primitive with the a single [gemhead] many times;
#X obj 21 35 tgl 15 1 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000 0 1;
#X obj 21 200 gemrepeat 100;
#X connect 0 0 18 0;
#X connect 1 0 13 0;
#X connect 2 0 23 0;
#X connect 2 1 3 0;
#X connect 2 1 12 0;
#X connect 3 0 14 0;
#X connect 4 0 5 0;
#X connect 6 0 8 0;
#X connect 7 0 9 0;
#X connect 8 0 11 0;
#X connect 9 0 10 0;
#X connect 10 0 4 2;
#X connect 11 0 4 1;
#X connect 12 0 15 0;
#X connect 13 0 4 0;
#X connect 13 1 6 0;
#X connect 13 1 7 0;
#X connect 14 0 6 0;
#X connect 15 0 7 0;
#X connect 16 0 14 1;
#X connect 16 0 15 1;
#X connect 18 0 2 0;
#X connect 19 0 18 1;
#X connect 20 0 18 2;
#X connect 22 0 0 0;
#X connect 23 0 1 0;
#X restore 370 469 pd more_on_the_"repeat"_technics;
#X obj 93 186 translateXYZ;
#X floatatom 120 168 5 0 0 0 - - - 0;
#X text 168 167 <- fun!;
#X obj 438 187 translateXYZ;
#X floatatom 465 169 5 0 0 0 - - - 0;
#X obj 628 8 declare -lib Gem;
#X obj 53 69 _gemwin;
#X obj 438 425 square 0.2 \; draw line;
#X obj 93 336 gemhead \; 0;
#X text 5 337 disable auto-render ->, f 14;
#X connect 0 0 27 0;
#X connect 1 0 6 0;
#X connect 2 0 0 0;
#X connect 3 0 35 0;
#X connect 3 1 4 0;
#X connect 4 0 5 1;
#X connect 4 1 5 2;
#X connect 4 2 5 3;
#X connect 5 0 9 0;
#X connect 6 0 3 0;
#X connect 11 0 30 0;
#X connect 12 0 11 0;
#X connect 13 0 17 1;
#X connect 13 1 17 2;
#X connect 13 2 17 3;
#X connect 15 0 22 0;
#X connect 15 1 23 0;
#X connect 16 0 15 0;
#X connect 16 0 24 0;
#X connect 17 0 34 0;
#X connect 18 0 19 0;
#X connect 18 1 19 0;
#X connect 18 2 21 0;
#X connect 19 0 20 0;
#X connect 20 0 17 0;
#X connect 20 1 16 0;
#X connect 21 0 16 1;
#X connect 22 0 13 0;
#X connect 23 0 13 0;
#X connect 24 0 16 1;
#X connect 27 0 1 0;
#X connect 28 0 27 1;
#X connect 30 0 18 0;
#X connect 31 0 30 1;
#X connect 35 0 5 0;
