#N canvas 411 8 483 219 12;
#X text 260 197 updated for Pd version 0.32;
#X text 10 172 see also:;
#X obj 110 193 drawnumber;
#X obj 205 192 plot;
#X obj 21 10 drawpolygon;
#X obj 21 30 drawcurve;
#X obj 104 10 filledpolygon;
#X obj 104 30 filledcurve;
#X text 203 9 -- draw shapes for data structures;
#N canvas 9 245 454 408 help-drawpolygon-template 1;
#X obj 10 322 template float x float y float cat float dog float weasel
;
#X obj 19 16 drawpolygon 0 2 0 0 0 weasel;
#X text 26 44 drawpolygon and drawcurve take arguments specifying:
;
#X text 29 137 Any of these can be numbers or field names \, like "weasel"
here. The example above draws a vertical black line of height "weasel".
;
#X obj 19 188 filledpolygon 900 dog 3 10 0 20 cat 30 0;
#X text 31 216 filledpolyconn and filledcurve take the same arguments
\, except that a new first argument is added to specify interior color.
Here the interior color is red (900) \, the outline color is controlled
by the "dog" field \, and the three points describe a triangle of altitude
"cat". The fields x and y automatically govern the placement of the
object as a whole.;
#X text 23 344 This object defines the fields for this template. Their
values are initialized in the "works" subwindow. You can see them by
right-clicking on the object in the "data" window and selecting "properties."
;
#X text 45 62 - RGB color (0=black \, 999=white \, 900=red \, 90=green
\, 9=blue \, 555=grey \, etc.);
#X text 46 95 - line width;
#X text 46 116 - two or more (x \, y) pairs giving coordinates.;
#X restore 274 93 pd help-drawpolygon-template;
#N canvas 220 315 665 326 works 0;
#X obj 335 175 pointer;
#X obj 122 108 t b b b;
#X obj 122 62 loadbang;
#X text 44 15 this subpatch puts two scalars in the "data" window.
;
#X msg 121 84 bang;
#X obj 29 242 append help-drawpolygon-template x y cat dog weasel;
#X msg 335 144 traverse pd-help-drawpolygon-data \, bang;
#X msg 232 107 \; pd-help-drawpolygon-data clear;
#X msg 29 211 50 40 30 9 80 \, 150 40 -20 90 50;
#X connect 0 0 5 5;
#X connect 1 0 8 0;
#X connect 1 1 6 0;
#X connect 1 2 7 0;
#X connect 2 0 4 0;
#X connect 4 0 1 0;
#X connect 6 0 0 0;
#X connect 8 0 5 0;
#X restore 275 143 pd works;
#X obj 31 191 template;
#N canvas 10 18 384 178 help-drawpolygon-data 1;
#X restore 274 119 pd help-drawpolygon-data;
