Commit f2853e9f authored by Jonathan Wilkes's avatar Jonathan Wilkes

Merge branch 'drawsvg'

parents 69e2a5af e16e7453
Pipeline #1013 canceled with stage
#N struct draw-help-struct float x float y;
#N canvas 270 52 555 619 10;
#N canvas 212 53 555 619 10;
#X obj 0 595 cnv 15 552 21 empty \$0-pddp.cnv.footer empty 20 12 0
14 -228856 -66577 0;
#X obj 0 0 cnv 15 552 40 empty \$0-pddp.cnv.header draw 3 12 0 18 -204280
-1 0;
#X obj 0 339 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13
#X obj 0 309 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13
-228856 -1 0;
#N canvas 494 296 482 332 META 0;
#X text 12 115 LIBRARY internal;
......@@ -17,13 +17,13 @@ rx ry;
#X text 12 135 AUTHOR Jonathan Wilkes;
#X text 13 155 HELP_PATCH_AUTHORS Jonathan Wilkes;
#X restore 500 597 pd META;
#X obj 0 436 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlets 8 12 0
#X obj 0 406 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlets 8 12 0
13 -228856 -1 0;
#X obj 0 473 cnv 3 550 3 empty \$0-pddp.cnv.argument arguments 8 12
#X obj 0 443 cnv 3 550 3 empty \$0-pddp.cnv.argument arguments 8 12
0 13 -228856 -1 0;
#X obj 0 573 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12
#X obj 0 543 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12
0 13 -228856 -1 0;
#X obj 78 347 cnv 17 3 80 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
#X obj 78 317 cnv 17 3 80 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#N canvas 212 516 428 108 Related_objects 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
......@@ -34,37 +34,37 @@ rx ry;
#X obj 162 36 drawsymbol;
#X obj 232 36 plot;
#X restore 101 597 pd Related_objects;
#X text 99 445 float;
#X obj 78 445 cnv 17 3 17 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
#X text 99 415 float;
#X obj 78 415 cnv 17 3 17 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#X text 169 445 - outputs the stored value as a float message.;
#X text 169 415 - outputs the stored value as a float message.;
#X obj 4 597 pddp/pddplink all_about_help_patches.pd -text Usage Guide
;
#X text 11 20 draw an svg shape to represent a scalar;
#X obj 492 12 draw;
#X text 101 554 float;
#X text 171 525 - [draw] accepts a list of coordinates and/or shape
#X text 101 524 float;
#X text 171 495 - [draw] accepts a list of coordinates and/or shape
data used to specify where and how to draw the object;
#X scalar draw-help-struct 322 277 \;;
#X obj 117 64 struct draw-help-struct float x float y;
#X msg 128 201 stroke-width \$1;
#X floatatom 128 177 5 0 0 0 - - -, f 5;
#X floatatom 128 238 5 0 0 0 - - -, f 5;
#X msg 128 262 transform skewx \$1;
#X text 98 346 float;
#X text 168 347 - any nonzero number will display the drawing to represent
#X scalar draw-help-struct 322 250 \;;
#X obj 117 59 struct draw-help-struct float x float y;
#X msg 128 174 stroke-width \$1;
#X floatatom 128 150 5 0 0 0 - - -, f 5;
#X floatatom 128 211 5 0 0 0 - - -, f 5;
#X msg 128 235 transform skewx \$1;
#X text 98 316 float;
#X text 168 317 - any nonzero number will display the drawing to represent
the corresponding scalar. SSending a "0" will hide it.;
#X text 98 386 [draw] also takes a number of messages. These are svg
#X text 98 356 [draw] also takes a number of messages. These are svg
attributes that define how the object is drawn. See the subpatch above
for a full list.;
#X text 81 490 1) symbol;
#X text 81 525 n) symbol;
#X text 107 539 or;
#X text 171 490 - name of an svg shape. Can be circle \, ellipse \,
#X text 81 460 1) symbol;
#X text 81 495 n) symbol;
#X text 107 509 or;
#X text 171 460 - name of an svg shape. Can be circle \, ellipse \,
line \, path \, polygon \, polyline \, rectangle \, or group.;
#X obj 80 293 draw circle 40 40;
#X obj 299 158 draw rect 80 80 100 -40;
#X msg 80 112 fill red \, stroke blue;
#X obj 80 266 draw circle 40 40;
#X obj 299 138 draw rect 80 80 100 -40;
#X msg 80 92 fill red \, stroke blue;
#N canvas 326 113 587 553 more_messages 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -204280 -1 0;
......@@ -125,8 +125,13 @@ line \, path \, polygon \, polyline \, rectangle \, or group.;
#X connect 30 0 32 0;
#X connect 31 0 32 0;
#X connect 33 0 32 0;
#X restore 299 112 pd more_messages;
#X msg 89 137 fill blue \, stroke black;
#X restore 299 92 pd more_messages;
#X msg 89 117 fill blue \, stroke black;
#X obj 172 553 pddp/pddplink drawarray-help.pd -text draw array;
#X text 101 555 See also:;
#X obj 172 573 pddp/pddplink drawimage-help.pd -text draw image;
#X obj 242 553 pddp/pddplink drawsprite-help.pd -text draw sprite;
#X obj 242 573 pddp/pddplink ./drawsvg-help.pd -text draw svg;
#X connect 19 0 30 0;
#X connect 20 0 19 0;
#X connect 21 0 22 0;
......
#N struct draw-array-help-element float y;
#N struct draw-array-help-struct float x float y array a draw-array-help-element
;
#N canvas 245 53 555 619 10;
#X obj 0 595 cnv 15 552 21 empty \$0-pddp.cnv.footer empty 20 12 0
14 -228856 -66577 0;
#X obj 0 0 cnv 15 552 40 empty \$0-pddp.cnv.header draw\ array 3 12
0 18 -204280 -1 0;
#X obj 0 339 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13
-228856 -1 0;
#N canvas 494 296 482 332 META 0;
#X text 12 115 LIBRARY internal;
#X text 12 25 LICENSE SIBSD;
#X text 12 5 KEYWORDS control GUI data-structure;
#X text 12 45 DESCRIPTION draw an svg shape to represent a scalar;
#X text 12 65 INLET_0 float fill fill-opacity fill-rule stroke stroke-dasharray
stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width
rx ry;
#X text 12 135 AUTHOR Jonathan Wilkes;
#X text 13 155 HELP_PATCH_AUTHORS Jonathan Wilkes;
#X restore 500 597 pd META;
#X obj 0 436 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlets 8 12 0
13 -228856 -1 0;
#X obj 0 473 cnv 3 550 3 empty \$0-pddp.cnv.argument arguments 8 12
0 13 -228856 -1 0;
#X obj 0 573 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12
0 13 -228856 -1 0;
#X obj 78 347 cnv 17 3 80 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#N canvas 212 516 428 108 Related_objects 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -204280 -1 0;
#X text 7 1 [draw] Related Objects;
#X obj 27 35 drawcurve;
#X obj 92 36 drawnumber;
#X obj 162 36 drawsymbol;
#X obj 232 36 plot;
#X restore 101 597 pd Related_objects;
#X text 99 445 float;
#X obj 78 445 cnv 17 3 17 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#X text 169 445 - outputs the stored value as a float message.;
#X obj 4 597 pddp/pddplink all_about_help_patches.pd -text Usage Guide
;
#X text 101 554 float;
#X text 171 525 - [draw] accepts a list of coordinates and/or shape
data used to specify where and how to draw the object;
#X text 98 346 float;
#X text 168 347 - any nonzero number will display the drawing to represent
the corresponding scalar. SSending a "0" will hide it.;
#X text 98 386 [draw] also takes a number of messages. These are svg
attributes that define how the object is drawn. See the subpatch above
for a full list.;
#X text 81 490 1) symbol;
#X text 81 525 n) symbol;
#X text 107 539 or;
#X text 171 490 - name of an svg shape. Can be circle \, ellipse \,
line \, path \, polygon \, polyline \, rectangle \, or group.;
#X text 11 20 draw an array of svg shapes;
#N canvas 731 197 450 323 draw-array-help-element 1;
#X obj 68 15 struct draw-array-help-element float y;
#X obj 149 89 draw circle 5;
#X restore 117 104 pd draw-array-help-element;
#X obj 117 64 struct draw-array-help-struct float x float y array a
draw-array-help-element;
#X scalar draw-array-help-struct 121 134 \; 0 \; 20 \; 25 \; 17 \;
8 \; 29 \; 30 \; 12 \; 14 \; 9 \; \;;
#X obj 118 271 draw array a 50 50;
#X floatatom 118 211 5 0 0 0 - - -, f 5;
#X msg 118 237 viewBox \$1 0 50 50;
#X text 261 245 Note: still a work-in-progress;
#X connect 27 0 28 0;
#X connect 28 0 26 0;
#N struct draw-image-help-struct float x float y;
#N canvas 238 53 555 619 10;
#X obj 0 595 cnv 15 552 21 empty \$0-pddp.cnv.footer empty 20 12 0
14 -228856 -66577 0;
#X obj 0 0 cnv 15 552 40 empty \$0-pddp.cnv.header draw\ image 3 12
0 18 -204280 -1 0;
#X obj 0 329 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13
-228856 -1 0;
#N canvas 494 296 482 332 META 0;
#X text 12 115 LIBRARY internal;
#X text 12 25 LICENSE SIBSD;
#X text 12 5 KEYWORDS control GUI data-structure;
#X text 12 45 DESCRIPTION draw an svg shape to represent a scalar;
#X text 12 65 INLET_0 float fill fill-opacity fill-rule stroke stroke-dasharray
stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width
rx ry;
#X text 12 135 AUTHOR Jonathan Wilkes;
#X text 13 155 HELP_PATCH_AUTHORS Jonathan Wilkes;
#X restore 500 597 pd META;
#X obj 0 396 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlets 8 12 0
13 -228856 -1 0;
#X obj 0 433 cnv 3 550 3 empty \$0-pddp.cnv.argument arguments 8 12
0 13 -228856 -1 0;
#X obj 0 533 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12
0 13 -228856 -1 0;
#X obj 78 337 cnv 17 3 50 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#N canvas 212 516 428 108 Related_objects 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -204280 -1 0;
#X obj 27 35 draw;
#X text 7 1 [draw image] Related Objects;
#X restore 101 597 pd Related_objects;
#X text 99 405 float;
#X obj 78 405 cnv 17 3 17 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#X text 169 405 - outputs the stored value as a float message.;
#X obj 4 597 pddp/pddplink all_about_help_patches.pd -text Usage Guide
;
#X floatatom 80 168 5 0 0 0 - - -, f 5;
#X msg 80 192 transform skewx \$1;
#X text 98 336 float;
#X text 81 450 1) symbol;
#X text 11 20 draw an svg image or sequence of images;
#X obj 117 64 struct draw-image-help-struct float x float y;
#X obj 80 253 draw image;
#X scalar draw-image-help-struct 324 189 \;;
#X text 168 337 - for [draw sprite] \, the index of the image to display.
This has no effect for [draw image];
#X text 171 450 - path to the image to display. Or for [draw sprite]
the path which contains a sequence of images;
#X text 81 485 2) float;
#X text 171 485 - x origin for the image;
#X text 81 505 3) float;
#X text 171 505 - y origin for the image;
#X obj 162 541 pddp/pddplink drawarray-help.pd -text draw array;
#X text 91 543 See also:;
#X obj 162 561 pddp/pddplink drawimage-help.pd -text draw image;
#X obj 232 541 pddp/pddplink drawsprite-help.pd -text draw sprite;
#X obj 232 561 pddp/pddplink ./drawsvg-help.pd -text draw svg;
#X connect 13 0 14 0;
#X connect 14 0 19 0;
#N struct draw-sprite-help float x float y;
#N canvas 255 53 555 619 10;
#X obj 0 595 cnv 15 552 21 empty \$0-pddp.cnv.footer empty 20 12 0
14 -228856 -66577 0;
#X obj 0 0 cnv 15 552 40 empty \$0-pddp.cnv.header draw\ sprite 3 12
0 18 -204280 -1 0;
#X obj 0 349 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13
-228856 -1 0;
#N canvas 466 266 482 355 META 0;
#X text 12 115 LIBRARY internal;
#X text 12 25 LICENSE SIBSD;
#X text 12 5 KEYWORDS control GUI data-structure;
#X text 12 45 DESCRIPTION draw an svg shape to represent a scalar;
#X text 12 65 INLET_0 float fill fill-opacity fill-rule stroke stroke-dasharray
stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width
rx ry;
#X text 12 135 AUTHOR Jonathan Wilkes;
#X text 13 155 HELP_PATCH_AUTHORS Jonathan Wilkes;
#X restore 500 597 pd META;
#X obj 0 446 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlets 8 12 0
13 -228856 -1 0;
#X obj 0 483 cnv 3 550 3 empty \$0-pddp.cnv.argument arguments 8 12
0 13 -228856 -1 0;
#X obj 0 553 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12
0 13 -228856 -1 0;
#X obj 78 357 cnv 17 3 80 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#N canvas 212 516 428 108 Related_objects 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -204280 -1 0;
#X obj 17 35 draw image;
#X obj 92 36 draw;
#X text 7 1 [draw sprite] Related Objects;
#X restore 101 597 pd Related_objects;
#X obj 78 455 cnv 17 3 17 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#X obj 4 597 pddp/pddplink all_about_help_patches.pd -text Usage Guide
;
#X obj 115 56 struct draw-sprite-help float x float y;
#X obj 293 81 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 293 101 metro 72;
#X obj 293 123 f;
#X obj 333 123 + 1;
#X obj 293 150 % 22;
#X msg 293 235 index \$1;
#N canvas 681 181 450 323 earth 0;
#X obj 62 8 loadbang;
#X msg 62 30 fill white \, stroke black \, stroke-width 3.98213;
#X obj 62 52 draw path m 125.441 64.4134 a 60.2251 60.2251 0 1 1 -120.45
0 a 60.2251 60.2251 0 1 1 120.45 0 z;
#X obj 62 120 draw path m 36.6489 11.9887 c 4.57718 -3.98317 10.7935
-5.0472 16.5767 -5.81134 c 3.18504 -1.70824 6.31674 0.661606 7.88578
1.63077 c 1.39674 -2.8954 6.10067 1.22814 5.64238 -2.96455 c 2.59712
-0.816215 4.03226 4.04543 6.8129 1.44597 c 3.1605 3.03694 -5.06567
3.97271 -3.48434 6.17877 c 4.74075 -0.533508 7.14687 3.59104 10.9833
5.05019 c -1.77232 -2.9487 -0.236351 -3.0666 -1.08089 -4.33422 c -1.70082
-2.55124 -4.04772 -4.10695 0.967781 -2.90709 c 5.74748 3.20745 3.22719
-1.26601 10.1905 4.28407 c 2.07054 -0.295027 2.88148 1.63521 2.82493
2.80785 c -0.044815 0.936308 -0.633278 1.74884 -2.82493 0.431078 c
-2.9471 2.10148 -3.04153 3.66146 -0.571915 1.14331 c 2.42639 0.024004
2.46533 4.76796 5.33081 2.10042 c -0.071487 0.805065 -0.488159 1.82406
-1.03928 2.06894 c -0.724503 0.322243 -1.68161 -0.250748 -2.39651 0.004803
c -0.856285 0.306236 -1.03821 0.967253 -1.3231 2.68515 c -1.97984 0.488155
-2.80679 1.55197 -2.74276 2.97484 c 0.102966 2.28127 1.64961 5.16915
-1.95638 5.70373 c -4.16509 2.05453 4.11335 9.57379 0.125908 9.42281
c -2.49682 -2.52563 -3.15836 -6.4101 -7.54754 -5.47752 c -1.92757 -0.336651
-2.34103 2.93749 -5.05071 0.927769 c -5.55862 -0.333981 -6.88439 6.72913
-4.55029 10.4562 c 1.51356 4.85706 7.67611 1.85447 8.48598 -1.4058
c 7.43977 -1.17158 -2.99565 9.21956 5.04272 7.69373 c 5.22891 -0.359581
0.569252 8.99388 7.2285 7.77055 c 3.93409 0.47855 8.10132 -7.83297
11.7628 -2.46001 c 2.07641 -0.521767 4.44412 -1.20785 6.30073 -0.417732
c 2.1479 0.914429 3.74896 3.43952 5.6221 4.62178 c 6.18336 -0.486023
1.35885 7.8399 7.38376 7.29892 c 6.32047 -0.660477 1.77445 6.23991
1.39778 9.54607 c -1.61172 4.81811 -3.62944 9.54338 -6.3514 13.844
c -4.9643 2.33623 -7.06739 8.11413 -11.0516 11.623 c -4.88587 1.42712
-8.13493 5.76881 -12.4457 8.1584 c -2.41359 2.19859 -7.34267 5.98543
-9.65596 5.20863 c 2.23113 -4.06532 5.00697 -7.37788 7.69212 -11.2389
c 2.08067 -4.69486 9.2889 -10.9513 6.09533 -15.8004 c -5.09981 -2.38317
-5.30521 -9.2857 -8.58522 -13.4289 c 2.15698 -2.10842 -0.325966 -6.02116
3.56171 -7.95834 c 1.90089 -1.61653 2.04974 -9.53913 -1.85608 -7.05512
c -5.60664 -1.25427 -8.09438 -7.61102 -13.9587 -7.99727 c -3.67107
-3.2544 -9.10806 -1.65655 -13.5826 -4.74289 c -4.299 -1.90676 -3.89513
-8.03836 -7.90979 -10.5848 c -0.979523 -1.29376 -3.42725 -6.86838 -4.23018
-3.91649 c 0.296097 2.15163 6.10867 10.2364 1.52423 5.52554 c -3.09061
-4.2766 -4.67299 -9.39934 -7.4307 -13.9096 c -2.43407 -4.04186 2.31276
-7.36615 1.52424 -11.0511 c 2.66701 -0.489227 -2.42106 -4.53055 -1.79099
-7.16448 c -1.94709 -2.7337 -2.29984 0.273157 -4.68734 -0.457218 c
-0.184116 2.0284 -1.78496 1.17265 -2.85816 0.476421 z;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 335 177 draw g earth;
#X scalar draw-sprite-help 87 105 \;;
#X floatatom 293 175 5 0 0 0 - - -, f 5;
#N canvas 0 0 450 300 rotate 0;
#X obj 98 21 inlet;
#X obj 98 182 outlet;
#X obj 108 115 loadbang;
#X msg 98 158 transform translate -30 85 rotate \$1 65 63;
#X msg 98 46 360 \$1;
#X obj 98 68 -;
#X obj 98 90 * 2.5;
#X msg 108 137 0;
#X connect 0 0 4 0;
#X connect 2 0 7 0;
#X connect 3 0 1 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 3 0;
#X connect 7 0 3 0;
#X restore 335 150 pd rotate;
#X text 98 356 index;
#X text 168 357 - index of the image to display from the loaded image
sequence. Indices are zero-based.;
#X text 98 396 [draw] also takes a number of messages. These are svg
attributes that define how the object is drawn. See the [draw] object
for more information about them.;
#X text 99 455 -;
#X text 169 455 - -;
#X text 81 500 1) directory;
#X text 91 570 Images may be: png \, jpg \, gif \, or svg;
#X text 171 500 - directory in which a sequence of images may be found.
Purr Data will load the images files found there in alphabetical order.
Relative paths are relative to the patch.;
#X obj 179 327 pddp/pddplink http://millionthvector.blogspot.com/p/free-sprites_12.html
;
#X text 237 309 Sprite from;
#X obj 293 259 draw sprite ./drawsprite_images;
#X text 11 20 draw a sprite from an image sequence;
#X connect 12 0 13 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 14 0 16 0;
#X connect 14 0 21 0;
#X connect 15 0 14 1;
#X connect 16 0 20 0;
#X connect 17 0 32 0;
#X connect 20 0 17 0;
#X connect 21 0 18 0;
#N struct draw-svg-help-struct float x float y;
#N canvas 157 53 555 619 10;
#X obj 0 595 cnv 15 552 21 empty \$0-pddp.cnv.footer empty 20 12 0
14 -228856 -66577 0;
#X obj 0 0 cnv 15 552 40 empty \$0-pddp.cnv.header draw\ svg 3 12 0
18 -204280 -1 0;
#X obj 0 347 cnv 3 550 3 empty \$0-pddp.cnv.inlets inlets 8 12 0 13
-228856 -1 0;
#N canvas 494 296 482 332 META 0;
#X text 12 115 LIBRARY internal;
#X text 12 25 LICENSE SIBSD;
#X text 12 5 KEYWORDS control GUI data-structure;
#X text 12 45 DESCRIPTION draw an svg shape to represent a scalar;
#X text 12 65 INLET_0 float fill fill-opacity fill-rule stroke stroke-dasharray
stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width
rx ry;
#X text 12 135 AUTHOR Jonathan Wilkes;
#X text 13 155 HELP_PATCH_AUTHORS Jonathan Wilkes;
#X restore 500 597 pd META;
#X obj 0 444 cnv 3 550 3 empty \$0-pddp.cnv.outlets outlets 8 12 0
13 -228856 -1 0;
#X obj 0 481 cnv 3 550 3 empty \$0-pddp.cnv.argument arguments 8 12
0 13 -228856 -1 0;
#X obj 0 542 cnv 3 550 3 empty \$0-pddp.cnv.more_info more_info 8 12
0 13 -228856 -1 0;
#X obj 78 355 cnv 17 3 80 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#N canvas 212 516 428 108 Related_objects 0;
#X obj 1 1 cnv 15 425 20 empty \$0-pddp.cnv.subheading empty 3 12 0
14 -204280 -1 0;
#X obj 27 35 draw;
#X text 7 1 [draw svg] Related Objects;
#X restore 101 597 pd Related_objects;
#X obj 78 453 cnv 17 3 17 empty \$0-pddp.cnv.let.0 0 5 9 0 16 -228856
-162280 0;
#X obj 4 597 pddp/pddplink all_about_help_patches.pd -text Usage Guide
;
#X text 98 394 [draw] also takes a number of messages. These are svg
attributes that define how the object is drawn. See the subpatch above
for a full list.;
#X obj 172 552 pddp/pddplink drawarray-help.pd -text draw array;
#X text 101 554 See also:;
#X obj 172 572 pddp/pddplink drawimage-help.pd -text draw image;
#X obj 242 552 pddp/pddplink drawsprite-help.pd -text draw sprite;
#X text 11 20 draw shapes inside an svg container;
#X obj 146 52 struct draw-svg-help-struct float x float y;
#X scalar draw-svg-help-struct 207 120 \;;
#X obj 34 137 r \$0-drag;
#X obj 34 159 route drag;
#N canvas 0 0 450 300 pan 0;
#X obj 50 51 unpack p 0 0;
#X floatatom 82 75 5 0 0 0 - - -, f 5;
#X floatatom 123 72 5 0 0 0 - - -, f 5;
#X obj 47 20 inlet;
#X obj 71 122 * -1;
#X obj 128 120 * -1;
#X obj 71 154 +;
#X obj 128 152 +;
#X obj 71 176 t a;
#X obj 128 174 t a;
#X obj 71 198 outlet;
#X obj 128 196 outlet;
#X connect 0 1 1 0;
#X connect 0 1 4 0;
#X connect 0 2 2 0;
#X connect 0 2 5 0;
#X connect 3 0 0 0;
#X connect 4 0 6 0;
#X connect 5 0 7 0;
#X connect 6 0 8 0;
#X connect 7 0 9 0;
#X connect 8 0 6 1;
#X connect 8 0 10 0;
#X connect 9 0 7 1;
#X connect 9 0 11 0;
#X restore 34 181 pd pan;
#X obj 33 211 pack;
#X text 98 354 viewBox;
#X text 168 355 - Four floats to define the viewport of the container:
xOrigin yOrigin width height. See svg spec for more details;
#X text 99 453 anything;
#X text 169 453 - messages in response to any events set for the object
;
#X text 81 498 1) float;
#X text 171 498 - initial width of the container;
#X text 81 515 2) float;
#X text 171 515 - initial height of the container;
#N canvas 492 53 686 639 (subpatch) 0;
#X obj 41 52 draw path m 5 194.088 l 666.819 0 l 0 -36.9314 l -3.12158
0 l 0 3.03125 l -5.96875 0 l 0 -1.5 l -7.40625 0 l 0 5.40625 l -5.65625
0 l 0 1.6875 l -3.125 0 l 0 -1.65625 l -5.40625 0 l -6.84375 -6.84375
l -1.84375 3.21875 l -2.5625 0 l 0 -19.1562 c 1.11498 -0.60865 1.90625
-1.76523 1.90625 -3.125 c 0 -1.35977 -0.79127 -2.51635 -1.90625 -3.125
l 0 -13.4375 l 2.03125 0 l 0 -2.3125 l -2.6938 0 l -0.99404 -12.4839
l -0.90632 12.4839 l -3.62459 0 l 0 1.84375 l 2.51562 0 l 0 1.79466
l -1.23437 0 l 0 1.99861 l 1.5625 0 l 0 10.0817 c -1.14211 0.60033
-1.9375 1.77639 -1.9375 3.15625 c 0 1.37986 0.79539 2.55592 1.9375
3.15625 l 0 19.625 l -2.90625 0 l 0 -5.59375 l -3.875 -3.90625 l -6.65625
3.84375 l 0 -2.5 l -3.53125 0.96875 l 0 7.4375 l -2.59375 0 l 0 -3.8125
l -17.5938 0 l 0 4 l -5.03125 0 l 0 -3.75 l -11.875 0 l 0 3.3125 l
-3.78125 0 l -0.78125 -26.4688 l -0.78125 25.1875 l -2.3125 0 l 0 -3.96875
l -2.9375 0 l 0 3.5 l -3.5 0 l 0 -2.1875 l -5.21875 0 l 0 5.1875 l
-7.8125 0 l 0 -2.53125 l -7.53125 0 l 0.25 -20.8438 l -1.28125 21.3438
l -4.09375 0 l 0 -6.3125 l -3.1875 0 l -0.9375 3.5 l -3.875 0 l 0 4.3125
l -2.3125 0 l 0 -6.34375 l -2.03125 -0.53125 l 0 4.875 l -1.28125 0
l 0 2.40625 l -1.59375 0 l 0 3.5 l -4.59375 0 l 0 -23.125 l -11.6875
0 l 0 -3.15625 l -3.46875 0 l 0 3.15625 l -3.875 0 l 0 8.71875 l -4.09375
0 l 0 5.15625 l -3.09375 0 l 0 4.375 l -2.125 0 l 0 -3.375 l -1.71875
0 l 0 -5.40625 l -6.59375 0 l 0 2.59375 l -8.59375 0 l 0 3.34375 l
-9.75 0 l 0 -14.7188 l -3.90625 0 l 0 -1.71875 l -3.5625 0 l 0 2.3125
l -2.0625 0 l 0 -2.59375 l -6.15625 0 l 0 6.96875 l -3.125 0 l 0 5.1875
l -1.5625 0 l 0 -9 l -1.5 0 l 0 -2.15625 l -5.75 0 l -0.65625 -2.53125
l -12.0938 0 l 0 5.15625 l -2.0625 0 l 0 6.6875 l -4.375 0 l -1.84375
-3.09375 l 0 -77.75 l -1.46875 0 l 0 -1.96875 l 3.15625 0 l 0 -5.1875
l 1.6875 0 l 0 -3.84375 l -1.6875 0 l 0 -8.28125 l -1.375 0 l 0 -3.5
l 6.03125 0 l 0 -2.5625 l -2.4375 0 l 0 -5.0625 l 2.1875 0 l 0 -2.1875
l -4.03125 0 l 0 -1.21875 l -2.78125 0 l 0 -3.125 l 1.71875 0 l 0 -1.9375
l -4.28125 0 L 405.166 5 l -1.40625 26.7812 l -5.34375 0 l 0 1.9375
l 1.96875 0 l 0 3.4375 c -2.95107 0.40253 -5.2699 1.439 -6.375 3.6875
l 0 2.96875 l 2.03125 0 l 0 2.78125 l -1.40625 0 l 0 1.78125 l 5.09375
0 l 0 3 l -2.125 0 l 0 8.28125 l -1.9375 0 l 0 3.84375 l 1.9375 0 l
0 4.6875 l 3.53125 0 l 0 2.46875 l -2.0625 0 l 0 78.25 l -12.4062 0
l 0 11.8438 l -5.65625 0 l 0 -22.125 l -5.40625 0 l 0 -1.53125 l -6.375
0 l -0.46875 -9.625 l -0.4375 9.625 l -8.57193 0 l 0 3.09375 l -3.0625
0 l 0 5.375 l -16.6191 0 l 0 5.65625 l -5.125 0 l 0 -2.90625 l -0.78125
-3 l -5.65625 0 l 0 2.84375 l -1.37218 0 l 0 15.3442 l -3.41612 0 l
0 -18.438 l -8.0867 0 l 0 -3.59375 l -4 0 l 0 3.78125 l -1.90625 1.09375
l 0 5.65625 l -33.2439 0 l 0 1.3125 l -1.8125 0 l 0 -4.40625 l -4.875
0 l 0 -1.03125 l -3.875 0 l 0 -2.5625 l -4.375 0 l 0 6.6875 l -12.1514
0 l 0 -2.5625 l -3.84375 0 l 0 -3.34375 l -4.25 0 l 0 10.4062 l -3.21875
-3.21875 l 0 -25.9688 l -6.15625 0 l 0 -6.15625 l -5.15625 0 l 0 13.375
l -6.99996 0 l 0 28.0945 l -6.09379 0 l 0 -8.06316 l -2.90625 -3.28125
l -3.53125 3.28125 l 0 -8.8125 l -5.28125 0 l 0 -2.875 l -5.59375 0
l 0 3.96875 l -3.5625 0 l 0 4.6875 l -1.5 0 l 0 -1.84375 l -10.7927
0 l 0 3.125 l -17.4334 0 l 0 -3.34375 l -3.96875 0 l 0 -2.34375 l -6.9375
0 l 0 -3.34375 l -3.84375 0 l -0.90625 -32.4375 c 1.7461 -0.54309 3.03125
-2.16894 3.03125 -4.09375 c 0 -2.01445 -1.409 -3.66423 -3.28125 -4.125
l -0.84375 -30.25 l -1.375 30.2812 c -1.77984 0.52232 -3.09375 2.14493
-3.09375 4.09375 c 0 1.81116 1.13148 3.37093 2.71875 4 l -1.96875 43.7812
l -4.46905 4.75707 l 0 3.18537 l -6.03095 -4.03614 l 0 -11.5625 l -19.25
0 l 0 6.0625 l -2.59375 0 l 0 -78.5 l -32.9688 0 l 0 74.2188 l -4.53125
0 l 0 2.5625 l -4.03125 0 l 0 2.34375 l -3.46875 0 l 0 -4.375 l -2.3125
0 l 0 -5.40625 l -3.34375 0 l 0 -6.6875 l -6.0746 0 l 0 22.754 l -4.59819
0 l 0 -1.83383 l -8.10846 0.0134 l 0 1.97273 l -4.875 0 l 0 8.96875
l -4.875 0 l 0 -8.96878 l -4.15862 0 l 0 -3.01004 l -2.34138 0 l 0
3.01004 l -11.75 0 l 0 7.43748 l -2.3125 0 l 0 3.34375 l -5.50958 0
z;
#X obj 41 9 loadbang;
#X msg 41 31 drag 1;
#X obj 41 981 s \$0-drag;
#X text 135 6 Skyline from:;
#X obj 135 26 pddp/pddplink https://upload.wikimedia.org/wikipedia/commons/1/13/JohannesburgArtisticSilhouette.svg
;
#X connect 0 0 3 0;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X restore 33 285 draw svg 300 200;
#X msg 33 233 viewBox \$1 \$2 300 200;
#X obj 34 52 loadbang;
#X msg 34 84 fill none \, stroke-width 2 \, stroke black \, stroke-dasharray
5 5, f 61;
#X obj 34 107 draw rect 300 200;
#X text 270 322 Click to drag the skyline;
#X connect 19 0 20 0;
#X connect 20 0 21 0;
#X connect 21 0 22 0;
#X connect 21 1 22 1;
#X connect 22 0 32 0;
#X connect 32 0 31 0;
#X connect 33 0 34 0;
#X connect 34 0 35 0;
......@@ -381,7 +381,7 @@ text {
stroke: #ccc;
}
/* A little hack for special canvas of [cnv].
/* A little hack for special case of [cnv].
All other iemguis have a black border, but
[cnv] sets its selection rectangle to the
user-supplied fill color when the object
......
......@@ -3264,9 +3264,9 @@ function gui_scalar_draw_select_rect(cid, tag, state, x1, y1, x2, y2, basex, bas
}
}
function gui_scalar_draw_group(cid, tag, parent_tag, attr_array) {
function gui_scalar_draw_group(cid, tag, parent_tag, type, attr_array) {
var parent_elem,
g;
group;
if (!patchwin[cid]) {
return;
}
......@@ -3275,9 +3275,9 @@ function gui_scalar_draw_group(cid, tag, parent_tag, attr_array) {
attr_array = [];