Kaynağa Gözat

initial commit

moved $0 to $1 in shape abstractions to allow state saving
Etienne Landon 7 yıl önce
işleme
69a6509657
5 değiştirilmiş dosya ile 445 ekleme ve 0 silme
  1. 3 0
      .gitignore
  2. 67 0
      controlPoint.pd
  3. 63 0
      ina-back.pd
  4. 45 0
      ina.pd
  5. 267 0
      shape.pd

+ 3 - 0
.gitignore

@@ -0,0 +1,3 @@
+/inaDEGRADE.jpg
+/inaDEGRADE_flou.jpg
+/inaDEGRADE_floucircle.jpg

+ 67 - 0
controlPoint.pd

@@ -0,0 +1,67 @@
+#N canvas 679 240 989 387 10;
+#X obj 105 119 hsl 90 10 -1920 1920 0 0 empty empty X 50 6 0 10 -262144
+-1 -1 4201 1;
+#X obj 344 74 array set \$1-pointsX \$2;
+#X obj 344 94 array set \$1-pointsY \$2;
+#X obj 105 131 hsl 90 10 -500 500 0 0 empty empty Y 50 6 0 10 -262144
+-1 -1 3560 1;
+#X obj 223 187 t b;
+#X obj 225 220 s \$1-redraw;
+#X obj 463 206 poftranslate;
+#X obj 463 228 pofcolor 1 0 0 1;
+#X obj 463 248 pofcirc 20 20 50;
+#X obj 607 54 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
+-1;
+#X obj 583 107 array get \$1-pointsX \$2 1;
+#X obj 583 127 array get \$1-pointsY \$2 1;
+#X obj 599 32 r \$1-redraw;
+#X obj 463 176 pofvisible;
+#X obj 337 130 r EDIT;
+#X obj 206 120 tgl 15 0 \$1-\$2-active empty empty 17 7 0 10 -262144
+-1 -1 1 1;
+#X obj 337 202 &&;
+#X obj 354 174 t b f;
+#X obj 354 154 r \$1-\$2-active;
+#X msg 130 46 set \$1;
+#X msg 157 76 set \$1;
+#X obj 218 19 r \$1-activePoints;
+#X obj 463 323 poftext font1;
+#X obj 608 176 loadbang;
+#X obj 463 278 pofcolor 0 0 1 1;
+#X obj 599 218 f \$2;
+#X msg 590 246 text \$1;
+#X obj 463 300 pofscale 0.5 0.5;
+#X obj 218 41 >= \$2;
+#X obj 463 154 r \$1-pofhead;
+#X connect 0 0 1 0;
+#X connect 0 0 4 0;
+#X connect 3 0 2 0;
+#X connect 3 0 4 0;
+#X connect 4 0 5 0;
+#X connect 6 0 7 0;
+#X connect 7 0 8 0;
+#X connect 8 0 24 0;
+#X connect 9 0 10 0;
+#X connect 9 0 11 0;
+#X connect 10 0 6 1;
+#X connect 10 0 19 0;
+#X connect 11 0 6 2;
+#X connect 11 0 20 0;
+#X connect 12 0 9 0;
+#X connect 13 0 6 0;
+#X connect 14 0 16 0;
+#X connect 16 0 13 0;
+#X connect 17 0 16 0;
+#X connect 17 1 16 1;
+#X connect 18 0 17 0;
+#X connect 19 0 0 0;
+#X connect 20 0 3 0;
+#X connect 21 0 28 0;
+#X connect 23 0 25 0;
+#X connect 24 0 27 0;
+#X connect 25 0 26 0;
+#X connect 26 0 22 0;
+#X connect 27 0 22 0;
+#X connect 28 0 15 0;
+#X connect 29 0 13 0;
+#X coords 0 -1 1 1 100 45 1 100 100;

+ 63 - 0
ina-back.pd

@@ -0,0 +1,63 @@
+#N canvas 1003 239 700 755 10;
+#X declare -lib pof;
+#X obj 9 13 cnv 15 200 20 empty empty empty 20 12 0 14 -204786 -66577
+0;
+#X obj 9 35 cnv 15 200 20 empty empty empty 20 12 0 14 -262130 -66577
+0;
+#X text 38 34 (c) Antoine Rousseau 2014;
+#X obj 9 66 cnv 15 200 20 empty empty empty 20 12 0 14 -261682 -66577
+0;
+#X obj 245 12 declare -lib pof;
+#X text 11 12 Pof: Pd OpenFrameworks externals;
+#X text 18 66 pofpath : draw a path.;
+#X msg 352 56 setcolor 0 0 1 0 0 1 \, setcolor 1 0 0 1 0 1;
+#X msg 232 55 resize 20 20;
+#X text 35 87 Arguments : texture_width texture_heigth;
+#X obj 37 158 pofhead;
+#X obj 97 335 + 1;
+#X obj 97 313 f;
+#X obj 37 385 pofrotate;
+#X floatatom 178 329 5 0 0 0 - - -, f 5;
+#X obj 37 293 pofbang 1;
+#X obj 110 165 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 37 193 pofscale 0;
+#X obj 153 177 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 37 219 poffbo 150 150 inafbo;
+#X obj 37 406 pofimage inaDEGRADE.jpg 150 150;
+#X obj 59 460 shape;
+#X floatatom 138 352 5 0 0 0 - - -, f 5;
+#X obj 97 357 * 0.3;
+#X obj 373 159 pofwin;
+#X msg 401 102 build;
+#X obj 538 117 r #pofkey;
+#X msg 397 127 background 0 0 0;
+#X obj 247 126 tgl 15 0 EDIT empty EDIT 17 7 0 10 -262144 -1 -1 1 1
+;
+#X obj 460 102 loadbang;
+#X obj 37 271 poftranslate;
+#X floatatom 97 248 5 0 0 0 - - -, f 5;
+#X floatatom 141 250 5 0 0 0 - - -, f 5;
+#X obj 59 490 shape;
+#X obj 59 520 shape;
+#X connect 10 0 17 0;
+#X connect 11 0 12 1;
+#X connect 11 0 23 0;
+#X connect 12 0 11 0;
+#X connect 13 0 20 0;
+#X connect 15 0 13 0;
+#X connect 15 1 12 0;
+#X connect 16 0 17 0;
+#X connect 17 0 19 0;
+#X connect 18 0 17 2;
+#X connect 18 0 17 1;
+#X connect 19 0 30 0;
+#X connect 22 0 23 1;
+#X connect 23 0 13 1;
+#X connect 25 0 24 0;
+#X connect 27 0 24 0;
+#X connect 29 0 27 0;
+#X connect 30 0 15 0;
+#X connect 31 0 30 1;
+#X connect 32 0 30 2;

+ 45 - 0
ina.pd

@@ -0,0 +1,45 @@
+#N canvas 987 224 858 755 10;
+#X declare -lib pof;
+#X obj 245 12 declare -lib pof;
+#X obj 373 184 pofwin;
+#X msg 401 102 build;
+#X obj 538 117 r #pofkey;
+#X msg 397 127 background 0 0 0;
+#X obj 247 126 tgl 15 0 EDIT empty EDIT 17 7 0 10 -262144 -1 -1 0 1
+;
+#X obj 460 102 loadbang;
+#X msg 382 77 window 1920 1080;
+#X msg 450 156 background 255 0 0;
+#X obj 20 33 array define -k 1-pointsX 20;
+#A 0 -58.6786 -58.2472 -38.4 53.0697 53.5011 19.8472 -26.3191 -28.4764
+0 -711.91 862.921 0 0 0 0 0 0 0 0 0;
+#X obj 20 53 array define -k 1-pointsY 20;
+#A 0 -36.2921 -7.19101 100 46.5169 -35.2809 -56.8539 -56.0674 -55.618
+0 0 0 0 0 0 0 0 0 0 0 0;
+#X obj 20 93 array define -k 2-pointsX 20;
+#A 0 -45.3034 -48.3236 2.1573 44.8719 26.7506 0 0 0 0 0 0 0 0 0 0 0
+0 0 0 0;
+#X obj 20 113 array define -k 2-pointsY 20;
+#A 0 -37.6404 2.13483 33.4831 8.08989 -39.2135 -37.4157 0 0 0 0 0 0
+0 0 0 0 0 0 0 0;
+#X obj 20 153 array define -k 3-pointsX 20;
+#A 0 0 -49.1865 -43.5775 -35.8112 0 47.0292 55.227 51.3438 20.7101
+0 0 0 0 0 0 0 0 0 0 0;
+#X obj 20 173 array define -k 3-pointsY 20;
+#A 0 -49.2135 -41.4607 0 36.0674 35.3933 34.1573 0 -45.3933 -41.7978
+0 0 0 0 0 0 0 0 0 0 0;
+#X obj 244 33 poffont font1 font/vera.ttf 20;
+#X obj 20 13 array define -k 1-values 3;
+#A 0 7 -136.773 0;
+#X obj 20 73 array define -k 2-values 3;
+#A 0 5 0 -92.9213;
+#X obj 20 133 array define -k 3-values 3;
+#A 0 8 194.157 52.6966;
+#X obj 6 232 shape 1;
+#X obj 566 232 shape 3;
+#X obj 286 232 shape 2;
+#X connect 2 0 1 0;
+#X connect 4 0 1 0;
+#X connect 6 0 4 0;
+#X connect 7 0 1 0;
+#X connect 8 0 1 0;

+ 267 - 0
shape.pd

@@ -0,0 +1,267 @@
+#N canvas 514 225 1077 791 10;
+#X obj 11 -57 pofhead;
+#X msg 99 336 clear;
+#X msg 111 411 filled \$1;
+#X obj 111 392 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X msg 115 465 strokeColor 1 0 0 1;
+#X msg 116 514 strokeWidth \$1;
+#X floatatom 116 493 5 0 0 0 - - -, f 5;
+#X msg 110 366 close;
+#X msg 110 438 fillColor 0 1 1 1;
+#X msg 169 594 scale \$1 \$1;
+#X floatatom 172 577 5 0 0 0 - - -, f 5;
+#X obj 93 665 t a;
+#X obj 73 715 pofpath 200 200;
+#X obj 141 657 loadbang;
+#X msg 691 280 clear;
+#X obj 319 146 hradio 15 1 0 15 empty empty empty 0 -8 0 10 -262144
+-1 -1 5;
+#X obj 664 119 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X floatatom 514 172 5 0 0 0 - - -, f 5;
+#X obj 895 81 loadbang;
+#X obj 714 158 f 7;
+#N canvas 253 147 450 552 redraw&clear 0;
+#X obj 138 40 t b f b;
+#X obj 161 75 until;
+#X obj 161 97 f;
+#X obj 161 119 t f f;
+#X obj 161 171 t f f;
+#X obj 193 143 + 1;
+#X obj 161 246 pack f f;
+#X msg 161 268 curveTo \$1 \$2;
+#X msg 191 292 clear;
+#X floatatom 245 151 5 0 0 0 - - -, f 5;
+#X msg 245 170;
+#X msg 214 74 0;
+#X obj 73 387 hsl 128 15 -1920 1920 0 0 empty empty empty -2 -8 0 10
+-262144 -1 -1 0 1;
+#X obj 73 410 hsl 128 15 -500 500 0 0 empty empty empty -2 -8 0 10
+-262144 -1 -1 0 1;
+#X obj 88 475 t b;
+#X obj 269 399 hradio 15 1 0 8 empty empty empty 0 -8 0 10 -262144
+-1 -1 7;
+#X msg 46 346 -100 100 100 -100;
+#X obj 161 320 t a;
+#X msg 233 340 -100 -100 100 100;
+#X obj 14 301 t b a b;
+#X obj 12 269 inlet;
+#X obj 142 17 inlet;
+#X obj 193 195 array get \$1-pointsY 0 1;
+#X obj 161 215 array get \$1-pointsX 0 1;
+#X obj 209 432 array set \$1-pointsX 0;
+#X obj 209 452 array set \$1-pointsY 0;
+#X obj 166 368 s \$1-path;
+#X obj 90 508 s \$1-redraw;
+#X connect 0 1 1 0;
+#X connect 0 2 8 0;
+#X connect 0 2 11 0;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 3 0 4 0;
+#X connect 3 1 5 0;
+#X connect 4 0 23 0;
+#X connect 4 1 22 0;
+#X connect 5 0 2 1;
+#X connect 6 0 7 0;
+#X connect 7 0 17 0;
+#X connect 8 0 17 0;
+#X connect 9 0 10 0;
+#X connect 11 0 2 1;
+#X connect 12 0 14 0;
+#X connect 12 0 24 0;
+#X connect 13 0 14 0;
+#X connect 13 0 25 0;
+#X connect 14 0 27 0;
+#X connect 15 0 24 1;
+#X connect 15 0 25 1;
+#X connect 16 0 25 0;
+#X connect 17 0 26 0;
+#X connect 18 0 24 0;
+#X connect 19 0 14 0;
+#X connect 19 1 26 0;
+#X connect 19 2 18 0;
+#X connect 19 2 16 0;
+#X connect 20 0 19 0;
+#X connect 21 0 0 0;
+#X connect 22 0 6 1;
+#X connect 23 0 6 0;
+#X restore 693 307 pd redraw&clear;
+#X obj 605 141 t b f;
+#X msg 141 680 mesh 1 \, filled 1 \, scale 290 290;
+#X obj 233 551 inlet;
+#X obj 157 553 loadbang;
+#X msg 139 577 685;
+#N canvas 1 52 450 474 FBO 0;
+#X obj 70 27 pofhead;
+#X obj 130 204 + 1;
+#X obj 130 182 f;
+#X obj 70 284 pofrotate;
+#X floatatom 211 198 5 0 0 0 - - -, f 5;
+#X obj 70 162 pofbang 1;
+#X obj 143 34 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 70 62 pofscale 0;
+#X obj 186 46 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 70 305 pofimage inaDEGRADE.jpg 150 150;
+#X floatatom 171 221 5 0 0 0 - - -, f 5;
+#X obj 70 140 poftranslate;
+#X floatatom 130 117 5 0 0 0 - - -, f 5;
+#X floatatom 174 119 5 0 0 0 - - -, f 5;
+#X obj 130 226 * 0.5;
+#X obj 70 88 poffbo 150 150 \$1-inafbo;
+#X obj 232 244 random 360;
+#X obj 130 248 +;
+#X obj 229 221 loadbang;
+#X text 319 241 unsync rotations;
+#X connect 0 0 7 0;
+#X connect 1 0 2 1;
+#X connect 1 0 14 0;
+#X connect 2 0 1 0;
+#X connect 3 0 9 0;
+#X connect 5 0 3 0;
+#X connect 5 1 2 0;
+#X connect 6 0 7 0;
+#X connect 7 0 15 0;
+#X connect 8 0 7 2;
+#X connect 8 0 7 1;
+#X connect 10 0 14 1;
+#X connect 11 0 5 0;
+#X connect 12 0 11 1;
+#X connect 13 0 11 2;
+#X connect 14 0 17 0;
+#X connect 15 0 11 0;
+#X connect 16 0 17 1;
+#X connect 17 0 3 1;
+#X connect 18 0 16 0;
+#X restore 756 523 pd FBO;
+#X obj 73 306 poftexture \$1-inafbo;
+#X obj 605 163 s \$1-redraw;
+#X obj 714 134 r \$1-redraw;
+#X obj 895 102 s \$1-redraw;
+#X obj 124 624 r \$1-path;
+#X obj 11 -34 pofvisible 1;
+#X obj 319 106 tgl 15 0 empty empty visible 17 7 0 10 -262144 -1 -1
+1 1;
+#X obj 41 152 t a a;
+#X obj 41 226 pofrect 50 50;
+#X obj 41 273 poftext font1;
+#X obj 177 188 f \$1;
+#X obj 155 144 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X obj 186 146 loadbang;
+#X obj 89 166 r EDIT;
+#X obj 185 248 print;
+#X msg 168 216 text \$1;
+#X obj 41 248 pofcolor 0 0 1 1;
+#X obj 714 222 s \$1-activePoints;
+#X obj 739 252 array set \$1-values;
+#X obj 311 463 controlPoint \$1 6;
+#X obj 311 193 controlPoint \$1 0;
+#X obj 311 238 controlPoint \$1 1;
+#X obj 311 283 controlPoint \$1 2;
+#X obj 311 328 controlPoint \$1 3;
+#X obj 311 373 controlPoint \$1 4;
+#X obj 311 418 controlPoint \$1 5;
+#X obj 311 508 controlPoint \$1 7;
+#X obj 439 193 controlPoint \$1 8;
+#X obj 439 283 controlPoint \$1 10;
+#X obj 439 328 controlPoint \$1 11;
+#X obj 439 373 controlPoint \$1 12;
+#X obj 439 418 controlPoint \$1 13;
+#X obj 439 463 controlPoint \$1 14;
+#X obj 439 508 controlPoint \$1 15;
+#X obj 439 238 controlPoint \$1 9;
+#X obj 714 202 - 0;
+#X obj 558 148 + 1;
+#X obj 795 283 + 2;
+#X obj 454 109 hsl 90 10 -1920 1920 0 0 empty empty X 50 6 0 10 -262144
+-1 -1 4133 1;
+#X obj 454 121 hsl 90 10 -500 500 0 0 empty empty Y 50 6 0 10 -262144
+-1 -1 0 1;
+#X obj 587 65 array set \$1-values 1;
+#X obj 587 85 array set \$1-values 2;
+#X obj 41 205 pofvisible 0;
+#X obj 145 -36 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
+-1 -1;
+#X obj 11 88 s \$1-pofhead;
+#X obj 11 65 t a a;
+#X obj 11 11 poftranslate;
+#X floatatom 314 77 5 0 0 0 - - -, f 5;
+#X obj 11 34 pofscale 1;
+#X obj 311 47 + 1;
+#X floatatom 308 20 5 0 0 0 - - -, f 5;
+#X obj 213 2 array get \$1-values 1 2;
+#X obj 213 24 unpack f f;
+#X floatatom 361 -30 5 0 0 0 - - -, f 5;
+#X obj 114 -27 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 129 1 t b;
+#X obj 10 -12 pofbang 1;
+#X connect 0 0 32 0;
+#X connect 1 0 11 0;
+#X connect 2 0 11 0;
+#X connect 3 0 2 0;
+#X connect 4 0 11 0;
+#X connect 5 0 11 0;
+#X connect 6 0 5 0;
+#X connect 7 0 11 0;
+#X connect 8 0 11 0;
+#X connect 9 0 11 0;
+#X connect 10 0 9 0;
+#X connect 11 0 12 0;
+#X connect 13 0 22 0;
+#X connect 14 0 20 0;
+#X connect 15 0 63 0;
+#X connect 16 0 19 0;
+#X connect 18 0 30 0;
+#X connect 19 0 45 0;
+#X connect 19 0 62 0;
+#X connect 19 0 64 0;
+#X connect 21 0 28 0;
+#X connect 21 1 19 1;
+#X connect 22 0 12 0;
+#X connect 23 0 9 0;
+#X connect 24 0 25 0;
+#X connect 25 0 9 0;
+#X connect 27 0 12 0;
+#X connect 29 0 19 0;
+#X connect 31 0 11 0;
+#X connect 32 0 83 0;
+#X connect 33 0 32 0;
+#X connect 34 0 69 0;
+#X connect 34 1 27 0;
+#X connect 35 0 43 0;
+#X connect 37 0 42 0;
+#X connect 38 0 37 0;
+#X connect 39 0 37 0;
+#X connect 40 0 69 0;
+#X connect 42 0 36 0;
+#X connect 42 0 41 0;
+#X connect 43 0 36 0;
+#X connect 62 0 44 0;
+#X connect 63 0 17 0;
+#X connect 63 0 21 0;
+#X connect 64 0 20 1;
+#X connect 65 0 67 0;
+#X connect 66 0 68 0;
+#X connect 69 0 35 0;
+#X connect 72 0 71 0;
+#X connect 72 1 34 0;
+#X connect 73 0 75 0;
+#X connect 74 0 75 2;
+#X connect 74 0 75 1;
+#X connect 75 0 72 0;
+#X connect 76 0 74 0;
+#X connect 77 0 76 0;
+#X connect 78 0 79 0;
+#X connect 79 0 73 1;
+#X connect 79 0 80 0;
+#X connect 79 1 73 2;
+#X connect 81 0 32 0;
+#X connect 82 0 78 0;
+#X connect 83 0 73 0;
+#X connect 83 1 82 0;
+#X coords 0 -1 1 1 280 500 1 300 60;