From c18cd82fccf0ce892fae395d4b4ce95793b541d4 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Sat, 23 Apr 2016 23:47:30 -0400 Subject: [PATCH] add deprecation warning to help file --- externals/moonlib/image-help.pd | 113 +++++++++++++++++--------------- 1 file changed, 59 insertions(+), 54 deletions(-) diff --git a/externals/moonlib/image-help.pd b/externals/moonlib/image-help.pd index d6f0cea84..9218477d7 100644 --- a/externals/moonlib/image-help.pd +++ b/externals/moonlib/image-help.pd @@ -1,33 +1,33 @@ -#N canvas 0 31 631 561 10; -#X obj 0 0 cnv 8 100 60 empty empty image 20 20 1 18 -262144 -1109 +#N canvas 197 95 631 592 10; +#X obj 0 38 cnv 8 100 60 empty empty image 20 20 1 18 -262144 -1109 0; -#X text 14 510 (c) moonix: Antoine Rousseau 2004; -#X text 118 15 image viewer; -#X text 79 33 usage: image image_symbol [type]; -#X text 97 48 if type=0 (or absent) \, image_symbol is a file.; -#X text 444 63 see "load" and "set"; -#X text 98 63 if type=1 \, image_symbol means a pre-loaded image \; +#X text 14 550 (c) moonix: Antoine Rousseau 2004; +#X text 118 73 image viewer; +#X text 79 91 usage: image image_symbol [type]; +#X text 97 106 if type=0 (or absent) \, image_symbol is a file.; +#X text 444 121 see "load" and "set"; +#X text 98 121 if type=1 \, image_symbol means a pre-loaded image \; ; -#X text 248 510 \, but it's a hack of Gunter Geiger's image...; -#X obj 112 134 cnv 15 80 40 empty empty empty 20 12 0 14 -1 -66577 +#X text 248 550 \, but it's a hack of Gunter Geiger's image...; +#X obj 112 192 cnv 15 80 40 empty empty empty 20 12 0 14 -1 -66577 0; -#X obj 122 148 image examples/play.gif ; -#X obj 348 216 cnv 15 20 20 empty empty empty 20 12 0 14 -1 -66577 +#X obj 122 206 image examples/play.gif 0; +#X obj 348 274 cnv 15 20 20 empty empty empty 20 12 0 14 -1 -66577 0; -#X obj 372 197 t a; -#X msg 424 105 open examples/play.gif; -#X msg 425 125 open examples/playy.gif; -#X msg 424 144 open examples/rec.gif; -#X msg 424 162 open examples/pause.gif; -#X msg 424 180 open examples/sinw.gif; -#X msg 425 198 open examples/squarew.gif; -#X msg 425 215 open examples/saww.gif; -#X obj 360 227 image examples/saww.gif ; -#X obj 136 148 image examples/rec.gif ; -#X obj 152 148 image examples/pause.gif ; -#X obj 185 144 image examples/sinw.gif ; -#X obj 185 156 image examples/squarew.gif ; -#X obj 185 168 image examples/saww.gif ; +#X obj 372 255 t a; +#X msg 424 163 open examples/play.gif; +#X msg 425 183 open examples/playy.gif; +#X msg 424 202 open examples/rec.gif; +#X msg 424 220 open examples/pause.gif; +#X msg 424 238 open examples/sinw.gif; +#X msg 425 256 open examples/squarew.gif; +#X msg 425 273 open examples/saww.gif; +#X obj 360 285 image examples/saww.gif 0; +#X obj 136 206 image examples/rec.gif 0; +#X obj 152 206 image examples/pause.gif 0; +#X obj 185 202 image examples/sinw.gif 0; +#X obj 185 214 image examples/squarew.gif 0; +#X obj 185 226 image examples/saww.gif 0; #N canvas 183 192 77 40 (subpatch) 0; #X obj 87 205 t a; #X msg 127 127 open examples/sinw.gif; @@ -35,7 +35,7 @@ #X msg 165 171 open examples/saww.gif; #X obj -1 0 tgl 40 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 0 1 cnv 15 40 40 empty empty empty 20 12 0 14 -1 -66577 0; -#X obj 26 20 image examples/sinw.gif ; +#X obj 26 20 image examples/sinw.gif 0; #X obj 127 84 i; #X obj 153 85 + 1; #X obj 179 85 mod 3; @@ -54,41 +54,46 @@ #X connect 10 2 3 0; #X connect 11 0 7 0; #X coords 0 0 1 1 40 40 1; -#X restore 246 133 pd; -#X text 241 118 click !; -#X obj 65 348 t f f; -#X obj 65 410 pack s s; -#X msg 65 430 load \$1 \$2; -#X msg 295 397 set \$1; -#X obj 298 304 hsl 128 15 0 63 0 0 empty empty empty -2 -6 0 8 -262144 +#X restore 246 191 pd; +#X text 241 176 click !; +#X obj 65 406 t f f; +#X obj 65 468 pack s s; +#X msg 65 488 load \$1 \$2; +#X msg 295 455 set \$1; +#X obj 298 362 hsl 128 15 0 63 0 0 empty empty empty -2 -6 0 8 -262144 -1 -1 0 1; -#X obj 295 326 i; -#X obj 202 446 image examples/rec.gif; -#X obj 295 349 change; -#X text 6 253 For animations \, it's beter to preload images:; -#X obj 402 377 loadbang; -#X msg 402 397 open examples/rec.gif; -#X text 95 274 1: load img_sym file; -#X text 291 287 2: set img_sym; -#X text 270 463 rem: when a img_symbol is loaded \, it; -#X text 305 475 can be used in any image object.; -#X text 17 94 ONLY GIF FILES ACCEPTED !! (because of Tk...); -#X msg 62 276 64; -#X obj 63 299 until; -#X obj 64 325 float; -#X obj 101 325 + 1; -#X obj 65 370 makefilename d%d; -#X obj 295 376 makefilename d%d; -#X obj 95 390 makefilename examples/d%d.gif; +#X obj 295 384 i; +#X obj 202 504 image /home/user/purr-data/externals/moonlib/examples/rec.gif +0; +#X obj 295 407 change; +#X text 6 311 For animations \, it's beter to preload images:; +#X obj 402 435 loadbang; +#X msg 402 455 open examples/rec.gif; +#X text 95 332 1: load img_sym file; +#X text 291 345 2: set img_sym; +#X text 270 521 rem: when a img_symbol is loaded \, it; +#X text 305 533 can be used in any image object.; +#X text 17 152 ONLY GIF FILES ACCEPTED !! (because of Tk...); +#X msg 62 334 64; +#X obj 63 357 until; +#X obj 64 383 float; +#X obj 101 383 + 1; +#X obj 65 428 makefilename d%d; +#X obj 295 434 makefilename d%d; +#X obj 95 448 makefilename examples/d%d.gif; #N canvas 518 217 494 344 META 0; #X text 12 25 LICENSE GPL v2; #X text 12 85 AUTHOR Antoine Rousseau; #X text 12 105 HELP_PATCH_AUTHORS Antoine Rousseau. "pd meta" information added by Jonathan Wilkes for Pd version 0.42.; #X text 12 65 INLET_0 load set open; -#X text 12 5 KEYWORDS control GUI; #X text 12 45 DESCRIPTION image viewer; -#X restore 574 531 pd META; +#X text 12 5 KEYWORDS control GUI deprecated; +#X restore 574 551 pd META; +#X text 102 9 Important note: This object is DEPRECATED. The "load" +method leaks memory \, and the image is anchored in the center which +makes it at odds with the normal object positioning in Pd.; +#X text 101 54 For images see [draw image] and [draw sprite]; #X connect 11 0 19 0; #X connect 12 0 11 0; #X connect 13 0 11 0; -- GitLab