#N struct template10 float x float y float a float b float c float
w;
#N canvas 322 90 497 324 12;
#X text 252 268 updated for Pd version 0.39;
#N canvas 632 231 496 512 template10 0;
#X obj 97 373 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 97 395 t b b;
#X obj 269 424 pointer;
#X msg 269 394 traverse pd-data10 \, bang;
#X obj 47 229 drawpolygon 0 1 20 20 20 -20 -20 -20 -20 20 20 20;
#X obj 47 137 drawcurve -v b 900 2 a(0:100)(0:100) 0 a(0:100)(0:71)
a(0:100)(0:71) 0 a(0:100)(0:100) a(0:100)(0:-71) a(0:100)(0:71) a(0:100)(0:-100)
0 a(0:100)(0:-71) a(0:100)(0:-71) 0 a(0:100)(0:-100) a(0:100)(0:71)
a(0:100)(0:-71) a(0:100)(0:100) 0;
#X obj 85 328 drawnumber b -10 -30 0;
#X text 85 112 "circle" of radius a \, visible when b != 0;
#X obj 97 454 append template10 x y a b;
#X msg 97 425 50 50 10 1;
#X obj 56 25 struct template10 float x float y float a float b;
#X text 55 56 Template demonstrating turning a drawing instruction
on and off., f 32;
#X obj 85 278 loadbang;
#X obj 85 303 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X text 115 301 <= show/hide this drawing instruction;
#X connect 0 0 1 0;
#X connect 1 0 9 0;
#X connect 1 1 3 0;
#X connect 2 0 8 4;
#X connect 3 0 2 0;
#X connect 9 0 8 0;
#X connect 12 0 13 0;
#X connect 13 0 6 0;
#X restore 65 238 pd template10;
#N canvas 857 96 324 294 data10 1;
#X scalar template10 92 193 15 1 40 0 \;;
#X scalar template10 180 161 15 0 40 0 \;;
#X coords 0 294 1 293 0 0 0;
#X restore 65 271 pd data10;
#X text 34 17 Drawing instructions can be dynamically turned on and
off \, either globally for all data of a given template \, or locally
according to a data field. In this example the "drawcurve" instruction's
arguments contain the leading flag "-v b" meaning that its visibility
is turned on and off by the field b.;
#X text 34 113 To turn a drawing instruction on and off globally \,
send a number to its inlet. By default drawing instructions are initially
visible \, unless given the "-n" flag., f 60;
#X text 34 167 Arrays have the additional possibility of turning on
and off drawing instructions for their individual points as scalars.
Use "-vs z" to make the variable z control this.;
