aboutsummaryrefslogtreecommitdiff
path: root/Patches/08 example-masking.pd
diff options
context:
space:
mode:
Diffstat (limited to 'Patches/08 example-masking.pd')
-rw-r--r--Patches/08 example-masking.pd66
1 files changed, 66 insertions, 0 deletions
diff --git a/Patches/08 example-masking.pd b/Patches/08 example-masking.pd
new file mode 100644
index 0000000..8e546a6
--- /dev/null
+++ b/Patches/08 example-masking.pd
@@ -0,0 +1,66 @@
+#N canvas 50 107 926 549 10;
+#X obj 9 33 fs.main;
+#X msg 8 8 6001;
+#X msg 45 8 reset;
+#X msg 115 196 412 + 104;
+#X msg 18 122 next \, bang;
+#X obj 18 294 fs.mask;
+#X msg 248 279 601 + 104;
+#X obj 18 99 fps 0;
+#X floatatom 18 76 4 0 0;
+#X obj 199 332 fs.draw;
+#X msg 199 308 rect \$1 \$2 \$3 \$4;
+#X msg 211 230 mousetrack_1 \, mouserect_1;
+#X msg 219 372 pen 0 0 0 \, brush 0 0 0;
+#X obj 130 173 init;
+#X msg 219 395 pen 255 255 255 \, brush 255 255 255;
+#X obj 18 173 fs.framed masking;
+#X obj 151 257 fs.framed masking;
+#X obj 18 392 fs.framed masking;
+#X obj 130 392 init;
+#X obj 259 257 init;
+#X obj 235 421 init;
+#X text 359 372 click here to draw black to the mask;
+#X text 435 394 draw white;
+#X text 409 51 1) drag & drop a video here:;
+#X text 598 51 2) draw rectanges to this frame:;
+#X text 599 262 the result is...;
+#X msg 115 417 601 + 313;
+#X text 116 47 fs.mask -- copy with mask;
+#X text 116 66 1st inlet: fs.frame to copy from;
+#X text 116 81 2nd inlet: fs.frame of the mask;
+#X text 134 95 outlet: output fs.frame;
+#X msg 52 76 2;
+#X obj 65 99 init;
+#X msg 364 443 invert;
+#X text 364 423 try inverting the mask..;
+#X connect 1 0 0 0;
+#X connect 1 0 2 0;
+#X connect 2 0 0 1;
+#X connect 3 0 15 0;
+#X connect 4 0 15 0;
+#X connect 5 0 17 0;
+#X connect 6 0 16 0;
+#X connect 7 0 4 0;
+#X connect 8 0 7 0;
+#X connect 9 0 16 0;
+#X connect 10 0 9 0;
+#X connect 11 0 16 0;
+#X connect 12 0 9 0;
+#X connect 13 0 3 0;
+#X connect 14 0 9 0;
+#X connect 15 0 5 0;
+#X connect 15 2 3 0;
+#X connect 16 0 5 1;
+#X connect 16 1 10 0;
+#X connect 16 2 6 0;
+#X connect 17 2 26 0;
+#X connect 18 0 26 0;
+#X connect 19 0 6 0;
+#X connect 19 0 11 0;
+#X connect 19 0 16 0;
+#X connect 20 0 14 0;
+#X connect 26 0 17 0;
+#X connect 31 0 8 0;
+#X connect 32 0 31 0;
+#X connect 33 0 16 0;