aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/pd_examples/threshold.pd
diff options
context:
space:
mode:
Diffstat (limited to 'externals/gridflow/pd_examples/threshold.pd')
-rw-r--r--externals/gridflow/pd_examples/threshold.pd149
1 files changed, 73 insertions, 76 deletions
diff --git a/externals/gridflow/pd_examples/threshold.pd b/externals/gridflow/pd_examples/threshold.pd
index 4a609930..0b90b07f 100644
--- a/externals/gridflow/pd_examples/threshold.pd
+++ b/externals/gridflow/pd_examples/threshold.pd
@@ -1,81 +1,78 @@
-#N canvas 720 79 579 617 10;
-#X obj 40 121 @ -;
-#X obj 40 144 @ max 0;
-#X obj 40 167 @ ||;
-#X obj 40 190 @ +;
-#X obj 99 143 inv+ 0;
-#X obj 40 -33 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1
+#N canvas 660 79 581 531 10;
+#X obj 72 208 inv+ 0;
+#X obj 40 8 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1;
+#X obj 99 57 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
;
-#X obj 95 56 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
-;
-#X floatatom 251 270 5 0 0 0 - - -;
-#X obj 251 137 vsl 15 128 0 256 0 0 empty empty empty 0 -8 0 8 -260818
+#X floatatom 124 224 5 0 0 0 - - -;
+#X obj 124 91 vsl 15 128 0 256 0 0 empty empty empty 0 -8 0 8 -260818
-1 -1 0 1;
-#X obj 40 55 shunt 2;
-#X obj 40 448 @out window;
-#X text 6 100 simple per-channel threshold;
-#X text 316 102 bluescreen luma threshold;
-#X text 381 255 here we have a mask;
-#X text 361 267 (alpha as separate image);
-#X obj 327 356 @join 2;
-#X text 386 295 make a RGBA image;
-#X obj 310 137 t b a a;
-#X text 218 398 = medium blue;
-#X obj 297 290 t a a;
-#X obj 131 449 fps;
-#X floatatom 161 451 5 0 0 0 - - -;
-#X obj 40 9 metro 100;
-#X msg 70 397 240 320 3 # 0 0 170;
-#X text 386 333 won't be necessary;
-#X text 319 117 with alpha channel;
-#X text 13 368 you could also load a picture;
-#X text 13 380 instead of using uniform blue;
-#X text 58 -31 1000/100 = 10 fps (max) (adjustable);
-#X text 281 22 see also color_detect.pd;
-#X obj 40 33 #camera;
-#X obj -13 -86 cnv 15 580 30 empty empty empty 20 12 0 14 -233017 -66577
+#X obj 40 67 shunt 2;
+#X text 7 104 simple per-channel threshold;
+#X text 276 53 bluescreen luma threshold;
+#X text 340 195 here we have a mask;
+#X text 320 207 (alpha as separate image);
+#X obj 257 278 @join 2;
+#X text 346 226 make a RGBA image;
+#X obj 270 88 t b a a;
+#X text 210 379 = medium blue;
+#X obj 257 221 t a a;
+#X obj 121 416 fps;
+#X floatatom 146 418 5 0 0 0 - - -;
+#X obj 40 29 metro 100;
+#X msg 70 378 240 320 3 # 0 0 170;
+#X text 279 68 with alpha channel;
+#X text 13 349 you could also load a picture;
+#X text 13 361 instead of using uniform blue;
+#X text 58 10 1000/100 = 10 fps (max) (adjustable);
+#X obj 40 48 #camera;
+#X obj -13 -45 cnv 15 580 30 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X text 0 -73 Copyright 2002 Mathieu Bouchard;
-#X obj -15 499 cnv 15 580 30 empty empty empty 20 12 0 14 -200249 -66577
+#X text 0 -32 Copyright 2002 Mathieu Bouchard;
+#X obj -15 450 cnv 15 580 30 empty empty empty 20 12 0 14 -200249 -66577
0;
-#X text -7 506 GridFlow 0.8.0;
-#X text -7 506 GridFlow 0.8.0;
-#X text 0 -86 threshold.pd;
-#X obj 290 335 #store;
-#X obj 290 314 #finished;
-#X obj 354 204 # * 255;
-#X obj 354 181 # >=;
-#X obj 354 162 #rgb_to_greyscale;
-#X text 384 320 this silly #finished;
-#X text 388 347 in GridFlow 1;
-#X obj 70 425 #draw_image put \, alpha 1;
-#X connect 0 0 1 0;
-#X connect 1 0 2 0;
-#X connect 2 0 3 0;
-#X connect 3 0 10 0;
-#X connect 4 0 2 1;
-#X connect 5 0 22 0;
-#X connect 6 0 9 1;
-#X connect 7 0 0 1;
-#X connect 7 0 4 0;
-#X connect 7 0 3 1;
-#X connect 7 0 40 1;
-#X connect 8 0 7 0;
-#X connect 9 0 0 0;
-#X connect 9 1 17 0;
-#X connect 10 0 20 0;
+#X text -7 457 GridFlow 0.8.0;
+#X text -7 457 GridFlow 0.8.0;
+#X text 0 -45 threshold.pd;
+#X obj 257 259 #store;
+#X obj 257 240 #finished;
+#X obj 314 145 # * 255;
+#X obj 314 126 # >=;
+#X obj 314 107 #rgb_to_greyscale;
+#X obj 70 397 #draw_image put \, alpha 1;
+#X obj 40 166 # -;
+#X obj 40 185 # max 0;
+#X obj 40 208 # ||;
+#X obj 40 227 # +;
+#X obj 40 416 #out window;
+#X text 387 -38 see also color_detect.pd;
+#X connect 0 0 38 1;
+#X connect 1 0 17 0;
+#X connect 2 0 5 1;
+#X connect 3 0 0 0;
+#X connect 3 0 33 1;
+#X connect 3 0 36 1;
+#X connect 3 0 39 1;
+#X connect 4 0 3 0;
+#X connect 5 0 36 0;
+#X connect 5 1 12 0;
+#X connect 10 0 35 1;
+#X connect 12 0 18 0;
+#X connect 12 1 14 0;
+#X connect 12 2 34 0;
+#X connect 14 0 31 0;
+#X connect 14 1 30 1;
+#X connect 15 0 16 0;
#X connect 17 0 23 0;
-#X connect 17 1 19 0;
-#X connect 17 2 41 0;
-#X connect 19 0 38 0;
-#X connect 19 1 37 1;
-#X connect 20 0 21 0;
-#X connect 22 0 30 0;
-#X connect 23 0 44 0;
-#X connect 30 0 9 0;
-#X connect 37 0 15 0;
-#X connect 38 0 37 0;
-#X connect 39 0 15 1;
-#X connect 40 0 39 0;
-#X connect 41 0 40 0;
-#X connect 44 0 10 0;
+#X connect 18 0 35 0;
+#X connect 23 0 5 0;
+#X connect 30 0 10 0;
+#X connect 31 0 30 0;
+#X connect 32 0 10 1;
+#X connect 33 0 32 0;
+#X connect 34 0 33 0;
+#X connect 35 0 40 0;
+#X connect 36 0 37 0;
+#X connect 37 0 38 0;
+#X connect 38 0 39 0;
+#X connect 39 0 40 0;
+#X connect 40 0 15 0;