[Gridflow-cvs] [svn] commit: r6644 - in /trunk/doc/flow_classes: #layer-help.pd #reverse-help.pd #spread-help.pd #transpose-help.pd

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Feb 20 16:19:34 EST 2011


Author: matju
Date: Sun Feb 20 16:19:34 2011
New Revision: 6644

Log:
...

Modified:
    trunk/doc/flow_classes/#layer-help.pd
    trunk/doc/flow_classes/#reverse-help.pd
    trunk/doc/flow_classes/#spread-help.pd
    trunk/doc/flow_classes/#transpose-help.pd

Modified: trunk/doc/flow_classes/#layer-help.pd
==============================================================================
--- trunk/doc/flow_classes/#layer-help.pd (original)
+++ trunk/doc/flow_classes/#layer-help.pd Sun Feb 20 16:19:34 2011
@@ -1,16 +1,16 @@
-#N canvas 648 0 632 552 10;
-#X text 176 92 opacity channel file;
-#X text 52 62 foreground file;
-#X text 383 83 background file;
-#X text 157 176 a picture that has an opacity level will be used as
+#N canvas 648 0 632 572 10;
+#X text 146 88 opacity channel file;
+#X text 41 64 foreground file;
+#X text 345 74 background file;
+#X text 167 156 a picture that has an opacity level will be used as
 foreground vs a picture that has no opacity channel. the output is
 a picture that has no opacity channel;
-#X msg 202 40 load b001.jpg;
-#X obj 179 67 #in;
-#X obj 205 67 #rgb_to_greyscale;
-#X obj 351 83 #in;
-#X msg 374 58 load g001.jpg;
-#X msg 42 38 load r001.jpg;
+#X msg 149 43 load b001.jpg;
+#X obj 149 63 #in;
+#X obj 175 63 #rgb_to_greyscale;
+#X obj 321 73 #in;
+#X msg 321 53 load g001.jpg;
+#X msg 19 43 load r001.jpg;
 #X obj 19 63 #in;
 #X obj 19 175 #layer;
 #X obj 19 206 #out window;
@@ -32,9 +32,11 @@
 #X obj 97 315 doc_m i0 grid;
 #X obj 97 350 doc_m i1 grid;
 #X obj 97 460 doc_m o0 grid;
-#X obj 0 518 doc_f;
+#X obj 0 538 doc_f;
 #X text 232 385 default is (1 1 3 #) \, which is useless. please supply
 an image.;
+#X obj 3 518 doc_also;
+#X obj 103 518 #draw_image;
 #X connect 4 0 5 0;
 #X connect 5 0 6 0;
 #X connect 6 0 23 1;
@@ -48,3 +50,4 @@
 #X connect 25 1 21 0;
 #X connect 25 1 28 0;
 #X connect 26 1 22 0;
+#X connect 29 1 30 0;

Modified: trunk/doc/flow_classes/#reverse-help.pd
==============================================================================
--- trunk/doc/flow_classes/#reverse-help.pd (original)
+++ trunk/doc/flow_classes/#reverse-help.pd Sun Feb 20 16:19:34 2011
@@ -1,24 +1,24 @@
 #N canvas 668 0 632 642 10;
-#X obj 258 177 #color;
-#X obj 301 320 #color;
-#X obj 259 378 display;
-#X obj 258 319 t a a;
-#X text 15 57 Swaps the values of incoming grids while preserving the
+#X obj 198 177 #color;
+#X obj 241 320 #color;
+#X obj 198 378 display;
+#X obj 198 319 t a a;
+#X text 15 37 Swaps the values of incoming grids while preserving the
 number of Dimensions between incoming and outgoing grids.;
-#X obj 22 257 #in;
+#X obj 22 217 #in;
 #X obj 22 176 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
 -1;
-#X obj 22 371 #out window;
-#X obj 87 259 hradio 15 1 0 6 empty empty empty 0 -6 0 8 -260818 -1
+#X obj 22 294 #out window;
+#X obj 79 217 hradio 15 1 0 6 empty empty empty 0 -6 0 8 -260818 -1
 -1 0;
-#X obj 87 277 - 3;
-#X floatatom 87 297 5 0 0 0 - - -;
-#X obj 22 314 #reverse 0;
-#X obj 258 300 #reverse 0;
-#X obj 323 245 hradio 15 1 0 6 empty empty empty 0 -6 0 8 -260818 -1
--1 0;
-#X obj 323 263 - 3;
-#X floatatom 323 283 5 0 0 0 - - -;
+#X obj 79 235 - 3;
+#X floatatom 79 255 5 0 0 0 - - -;
+#X obj 22 274 #reverse 0;
+#X obj 198 300 #reverse 0;
+#X obj 255 243 hradio 15 1 0 6 empty empty empty 0 -6 0 8 -260818 -1
+-1 3;
+#X obj 255 261 - 3;
+#X floatatom 255 281 5 0 0 0 - - -;
 #X obj 0 0 doc_h;
 #X obj 3 416 doc_c 1;
 #X obj 3 517 doc_i 2;
@@ -36,15 +36,21 @@
 will occur. For N-dimensional grids \, the dimensions are numbered
 from 0 to N-1. In addition \, negative numbers from -N to -1 may be
 used \, to which N will be added.;
-#X obj 0 663 doc_f;
+#X obj 0 683 doc_f;
 #X text 232 547 grid to be reversed;
 #X text 232 631 reversed grid;
-#X msg 22 226 load b001.jpg;
-#X text 16 92 for an image \, 0 or -3 does vertical flip \, 1 or -2
+#X msg 22 196 load b001.jpg;
+#X text 14 73 for an image \, 0 or -3 does vertical flip \, 1 or -2
 does horizontal flip \, and 2 or -1 does channel flip. if you do this
 on something else than an image \, you may see why the negative numbers
 are supported: if you make a grid of multiple images \, then -1 will
 always refer to the channels dimension no matter what.;
+#X obj 3 663 doc_also;
+#X text 289 281 here \, only 0 and -1 are accepted;
+#X text 289 294 because the output of [#color] has only 1 dimension
+;
+#X obj 103 663 #transpose;
+#X obj 175 663 listreverse;
 #X connect 0 0 12 0;
 #X connect 3 0 2 0;
 #X connect 3 1 1 0;
@@ -63,3 +69,5 @@
 #X connect 26 1 29 0;
 #X connect 27 1 28 0;
 #X connect 33 0 5 0;
+#X connect 35 1 38 0;
+#X connect 35 1 39 0;

Modified: trunk/doc/flow_classes/#spread-help.pd
==============================================================================
--- trunk/doc/flow_classes/#spread-help.pd (original)
+++ trunk/doc/flow_classes/#spread-help.pd Sun Feb 20 16:19:34 2011
@@ -1,79 +1,55 @@
-#N canvas 673 0 632 642 10;
-#X text 1 25 makes noise;
-#X obj 207 42 bng 15 250 50 0 empty empty empty 0 -6 0 8 -233017 -1
--1;
-#X obj 221 134 tgl 15 0 empty empty empty 0 -6 0 8 -233017 -1 -1 0
-1;
-#X floatatom 368 241 5 0 0 0 - - -;
-#X floatatom 78 163 5 0 0 0 - - -;
-#X obj 20 88 until;
-#X obj 20 51 bng 15 250 50 0 empty empty empty 0 -6 0 8 -233017 -1
--1;
-#X msg 20 69 65536;
-#X obj 61 88 float;
-#X obj 101 88 + 1;
-#X text 219 308 we limit here \, because the values might go out of
-range;
-#X obj 149 73 metro 50;
-#X obj 149 51 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
-;
-#X obj 20 129 #import (256 256 2);
-#X obj 195 269 #store;
-#X obj 195 341 #out window;
-#X obj 310 341 #out window;
-#X obj 310 291 #clip;
-#X obj 148 124 #in;
-#X obj 249 247 shunt;
+#N canvas 673 0 632 553 10;
+#X obj 18 85 #in;
 #X obj 0 0 doc_h;
-#X obj 3 491 doc_c 1;
-#X obj 3 633 doc_o 1;
-#X obj 3 551 doc_i 2;
-#X text 210 147 switch displays \, use this to get an image into the
-#store;
-#X obj 14 663 doc_oo 0;
-#X obj 14 581 doc_ii 0;
-#X obj 14 601 doc_ii 1;
-#X obj 14 521 doc_cc 0;
-#X obj 97 581 doc_m i0 grid;
-#X obj 97 663 doc_m o0 grid;
-#X text 326 33 typically you plug a [#for] into this object \, and
-you plug this object into the left side of a [#store]. it will scatter
-pixels around \, giving an "unpolished glass" effec.t;
-#X text 326 89 if you put a picture in it \, however \, it will add
+#X obj 3 291 doc_c 1;
+#X obj 3 437 doc_o 1;
+#X obj 3 353 doc_i 2;
+#X obj 14 467 doc_oo 0;
+#X obj 14 383 doc_ii 0;
+#X obj 14 405 doc_ii 1;
+#X obj 14 321 doc_cc 0;
+#X obj 97 383 doc_m i0 grid;
+#X obj 97 467 doc_m o0 grid;
+#X text 246 89 if you put a picture in it \, however \, it will add
 noise. The resulting values may be out of range \, so you may need
 to clip them using min/max.;
-#X text 54 364 [#spread] scatters the pixels in an image. Not all original
-pixels will appear \, and some may get duplicated (triplicated \, etc)
-randomly. Some wrap-around effect will occur close to the edges.;
-#X text 52 425 Sending an integer to inlet 1 sets the amount of spreading
+#X text 244 202 Sending an integer to inlet 1 sets the amount of spreading
 in maximum number of pixels + 1 even values translate the whole image
 by half a pixel due to rounding .;
-#X obj 0 693 doc_f;
-#X obj 97 601 doc_m i1 grid;
-#X obj 97 521 doc_m c0 grid;
-#X obj 232 601 doc_same 0;
-#X obj 20 197 #spread 1;
-#X obj 310 270 #spread 1;
-#X msg 207 89 load r001.jpg;
-#X connect 1 0 41 0;
-#X connect 2 0 19 1;
-#X connect 3 0 40 1;
-#X connect 4 0 39 1;
-#X connect 5 0 8 0;
-#X connect 6 0 7 0;
-#X connect 7 0 5 0;
-#X connect 8 0 9 0;
-#X connect 8 0 13 0;
-#X connect 9 0 8 1;
-#X connect 11 0 18 0;
-#X connect 12 0 11 0;
-#X connect 13 0 39 0;
-#X connect 14 0 15 0;
-#X connect 17 0 16 0;
-#X connect 18 0 19 0;
-#X connect 19 0 14 1;
-#X connect 19 1 40 0;
-#X connect 36 1 38 0;
-#X connect 39 0 14 0;
-#X connect 40 0 17 0;
-#X connect 41 0 18 0;
+#X obj 0 519 doc_f;
+#X obj 97 405 doc_m i1 grid;
+#X obj 97 321 doc_m c0 grid;
+#X obj 232 405 doc_same 0;
+#X msg 18 65 load r001.jpg;
+#X obj 3 499 doc_also;
+#X text 17 35 add noise to a grid;
+#X text 246 141 [#remap_image]x[#spread] scatters the pixels in an
+image. Not all original pixels will appear \, and some may get duplicated
+(triplicated \, etc) randomly. Some wrap-around effect will occur close
+to the edges.;
+#X obj 18 105 #remap_image;
+#X obj 18 196 #in;
+#X msg 18 176 load r001.jpg;
+#X obj 18 125 #out window \, title spread_positions;
+#X obj 18 256 #out window \, title spread_colors;
+#X obj 18 236 #clip;
+#X text 55 236 ensure 0..255;
+#X obj 18 216 #spread 100;
+#X obj 104 105 #spread 10;
+#X obj 103 499 #remap_image;
+#X text 246 33 typically you plug a [#remap_image] together with this
+object. it will scatter pixels around \, giving an "unpolished glass"
+effect.;
+#X obj 187 499 # rand;
+#X connect 0 0 21 0;
+#X connect 14 1 16 0;
+#X connect 17 0 0 0;
+#X connect 18 1 30 0;
+#X connect 18 1 32 0;
+#X connect 21 0 24 0;
+#X connect 21 1 29 0;
+#X connect 22 0 28 0;
+#X connect 23 0 22 0;
+#X connect 26 0 25 0;
+#X connect 28 0 26 0;
+#X connect 29 0 21 1;

Modified: trunk/doc/flow_classes/#transpose-help.pd
==============================================================================
--- trunk/doc/flow_classes/#transpose-help.pd (original)
+++ trunk/doc/flow_classes/#transpose-help.pd Sun Feb 20 16:19:34 2011
@@ -1,4 +1,4 @@
-#N canvas 674 0 632 444 10;
+#N canvas 674 0 632 469 10;
 #X obj 3 150 doc_c 2;
 #X obj 36 65 #transpose;
 #X obj 3 234 doc_i 3;
@@ -22,16 +22,21 @@
 #X text 232 202 dimension number;
 #X obj 232 299 doc_same 0;
 #X obj 232 321 doc_same 1;
-#X obj 0 415 doc_f;
-#X text 226 58 remaps contents of a grid by swapping dimensions of
-indices. for example \, [#transpose 0 1] does the same as [#remap_image]x[#reverse].
-;
+#X obj 0 435 doc_f;
 #X text 232 383 remapped image;
-#X text 228 108 this is like matrix-transposition that you frequently
+#X text 233 98 this is like matrix-transposition that you frequently
 read about in linear algebra books.;
+#X obj 3 415 doc_also;
+#X obj 103 415 #reverse;
+#X obj 163 415 #remap_image;
+#X text 231 47 remaps contents of a grid by swapping dimensions of
+indices. for example \, [#transpose 0 1] does the same as [#remap_image]x[#reverse]
+in the case of a square grid.;
 #X connect 11 1 18 0;
 #X connect 12 1 19 0;
 #X connect 13 1 17 0;
 #X connect 14 1 20 0;
 #X connect 15 1 21 0;
-#X connect 16 1 24 0;
+#X connect 16 1 23 0;
+#X connect 25 1 26 0;
+#X connect 25 1 27 0;



More information about the Gridflow-cvs mailing list