From bde9f434888cc3b83cdbcfeff6e4f65df55d20cf Mon Sep 17 00:00:00 2001 From: Sojourner Truth <jon.w.wilkes@gmail.com> Date: Tue, 19 Jul 2016 22:09:28 -0400 Subject: [PATCH] update draw-help.pd to reflect changes to the interface --- pd/doc/5.reference/draw-help.pd | 97 ++++++++++++++++----------------- 1 file changed, 47 insertions(+), 50 deletions(-) diff --git a/pd/doc/5.reference/draw-help.pd b/pd/doc/5.reference/draw-help.pd index 62832c748..021c41682 100644 --- a/pd/doc/5.reference/draw-help.pd +++ b/pd/doc/5.reference/draw-help.pd @@ -1,5 +1,5 @@ #N struct draw-help-struct float x float y; -#N canvas -7 0 555 619 10; +#N canvas 270 52 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 @@ -42,28 +42,34 @@ rx ry; ; #X text 11 20 draw an svg shape to represent a scalar; #X obj 492 12 draw; -#X obj 116 181 draw circle 0 0 40 40; #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 scalar draw-help-struct 122 277 \;; +#X scalar draw-help-struct 322 277 \;; #X obj 117 64 struct draw-help-struct float x float y; -#X msg 116 96 fill red; -#X msg 208 122 stroke-width \$1; -#X floatatom 208 98 5 0 0 0 - - -, f 5; -#X floatatom 338 98 5 0 0 0 - - -, f 5; -#X msg 338 149 transform skewx \$1; -#X obj 338 119 * 0.01; -#X msg 130 121 fill blue; +#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 obj 339 275 draw rect 100 -40 80 80; -#N canvas 323 38 587 553 all_messages 0; +#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 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; +#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; #X text 7 1 [draw] Attributes; #X msg 25 55 fill red; -#X text 132 55 fill color. 1 symbol \, 3 floats (rgb) \, or 4 floats -(rgba); #X text 132 103 opacity for fill color. float in range 0-1; #X floatatom 32 78 5 0 0 0 - - -, f 5; #X text 72 79 (shift-click for more precision); @@ -100,40 +106,31 @@ data used to specify where and how to draw the object; #X obj 25 516 outlet; #X msg 93 489 transform translate 150 0 scale \$1 translate -150 0 ; -#X connect 2 0 33 0; -#X connect 5 0 7 0; -#X connect 7 0 33 0; +#X text 92 55 fill color. 1 symbol or 3 floats (rgb); +#X connect 2 0 32 0; +#X connect 4 0 6 0; +#X connect 6 0 32 0; +#X connect 8 0 10 0; #X connect 9 0 11 0; -#X connect 10 0 12 0; -#X connect 11 0 33 0; -#X connect 12 0 33 0; -#X connect 17 0 33 0; -#X connect 23 0 33 0; -#X connect 24 0 33 0; -#X connect 25 0 33 0; -#X connect 27 0 33 0; -#X connect 28 0 29 0; -#X connect 29 0 34 0; -#X connect 30 0 33 0; -#X connect 31 0 33 0; -#X connect 32 0 33 0; -#X connect 34 0 33 0; -#X restore 339 229 pd all_messages; -#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 connect 20 0 15 0; -#X connect 21 0 15 0; -#X connect 22 0 21 0; -#X connect 23 0 25 0; -#X connect 24 0 15 0; -#X connect 25 0 24 0; -#X connect 26 0 15 0; -#X connect 29 0 28 0; +#X connect 10 0 32 0; +#X connect 11 0 32 0; +#X connect 16 0 32 0; +#X connect 22 0 32 0; +#X connect 23 0 32 0; +#X connect 24 0 32 0; +#X connect 26 0 32 0; +#X connect 27 0 28 0; +#X connect 28 0 33 0; +#X connect 29 0 32 0; +#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 connect 19 0 30 0; +#X connect 20 0 19 0; +#X connect 21 0 22 0; +#X connect 22 0 30 0; +#X connect 32 0 30 0; +#X connect 33 0 31 0; +#X connect 34 0 30 0; -- GitLab