[Gridflow-cvs] [svn] commit: r4351 - in /trunk/doc: flow_classes/#dim-help.pd flow_classes/#remap_image-help.pd flow_classes/#rotate-help.pd flow_classes/#spread-help.pd flow_classes/#type-help.pd reference.xml

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sat Oct 24 17:13:14 EDT 2009


Author: matju
Date: Sat Oct 24 17:13:13 2009
New Revision: 4351

Log:
~XML();

Added:
    trunk/doc/flow_classes/#type-help.pd
Modified:
    trunk/doc/flow_classes/#dim-help.pd
    trunk/doc/flow_classes/#remap_image-help.pd
    trunk/doc/flow_classes/#rotate-help.pd
    trunk/doc/flow_classes/#spread-help.pd
    trunk/doc/reference.xml

Modified: trunk/doc/flow_classes/#dim-help.pd
==============================================================================
--- trunk/doc/flow_classes/#dim-help.pd (original)
+++ trunk/doc/flow_classes/#dim-help.pd Sat Oct 24 17:13:13 2009
@@ -1,4 +1,4 @@
-#N canvas 224 30 560 484 10;
+#N canvas 687 0 560 484 10;
 #X obj 29 87 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 -1
 ;
 #X obj 22 178 print number_of_dimensions;
@@ -6,11 +6,9 @@
 #X obj 22 130 #dim;
 #X obj 22 154 #export;
 #X msg 22 66 open working.jpg;
-#X text 8 290 GRID;
 #X text 15 37 Outputs grid dimensions (columns \, row \, channels).
 ;
-#X text 70 290 Receives a grid \, ignores its content.;
-#X text 70 367 The received grid is output as a one dimensional grid
+#X text 193 332 The received grid is output as a one dimensional grid
 representing grid dimensions. For example \, a grid sized like dim(240
 \, 320 \, 4) [#dim] will return a grid like dim(3) whose values are
 240 \, 320 \, 4;
@@ -22,9 +20,15 @@
 #X obj 166 459 #export;
 #X obj 222 459 #export_list;
 #X obj 3 459 doc_also;
-#X text 8 369 GRID;
 #X obj 14 261 doc_ii 0;
 #X obj 14 335 doc_oo 0;
+#X obj 100 261 doc_m i0 grid;
+#X obj 100 335 doc_m o0 grid;
+#X text 185 65 Returns list of dimensions as a grid. Given a grid sized
+like Dim(240 \, 320 \, 4) \, [#dim] will return a grid like Dim(3)
+\, whose values are 240 \, 320 \, 4 .;
+#X text 200 260 ignores any data contained within. sends a grid dim(length
+of dims) containing dims.;
 #X connect 0 0 2 0;
 #X connect 2 0 3 0;
 #X connect 3 0 4 0;

Modified: trunk/doc/flow_classes/#remap_image-help.pd
==============================================================================
--- trunk/doc/flow_classes/#remap_image-help.pd (original)
+++ trunk/doc/flow_classes/#remap_image-help.pd Sat Oct 24 17:13:13 2009
@@ -1,14 +1,12 @@
-#N canvas 300 33 557 684 10;
+#N canvas 690 0 557 684 10;
 #X text 19 26 Transforms a grid by displacing pixels.;
 #X obj 27 154 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
 -1;
 #X obj 46 179 #in;
 #X floatatom 156 201 5 0 0 0 - - -;
-#X text 7 398 GRID;
 #X obj 140 229 # +;
 #X msg 61 153 open sewing.jpg;
 #X text 201 199 <-- Modify value to see transformation.;
-#X text 54 397 Accepts a grid.;
 #X text 178 152 <-- open image;
 #X obj 46 281 #out window \, title remapped;
 #X obj 46 97 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1;
@@ -16,17 +14,9 @@
 #X text 19 45 If you chain indexmap (coordinate) transformations from
 outlet 1 to inlet 1 \, then sending an image in inlet 0 will emit its
 deformation out of outlet 0;
-#X text 8 524 GRID;
-#X text 55 523 The deformed grid.;
 #X obj 46 229 #remap_image;
-#X text 8 578 GRID;
 #X text 187 229 <-- change the numop to change the transformation;
-#X text 6 457 GRID;
 #X obj 100 619 #rotate;
-#X text 53 456 Receives a grid that is to be used as the transformation
-map;
-#X text 60 578 The deformed grid that has received the last transformation.
-;
 #X obj 0 0 doc_h;
 #X obj 3 329 doc_c 0;
 #X obj 3 349 doc_i 2;
@@ -36,12 +26,22 @@
 #X obj 14 426 doc_ii 1;
 #X obj 14 502 doc_oo 0;
 #X obj 14 557 doc_oo 1;
+#X obj 100 373 doc_m i0 grid;
+#X text 193 373 grid to be remapped;
+#X obj 100 557 doc_m o1 grid;
+#X text 189 556 indexmap of dummy coordinates \, to be deformed;
+#X obj 100 426 doc_m i1 grid;
+#X text 192 425 modified version of what came out of outlet 1 \, which
+will determine the remapping;
+#X obj 100 502 doc_m o0 grid;
+#X text 193 500 the grid from inlet 0 after being remapped using the
+grid from inlet 1;
 #X connect 1 0 2 0;
-#X connect 2 0 16 0;
-#X connect 3 0 5 1;
-#X connect 5 0 16 1;
-#X connect 6 0 2 0;
-#X connect 11 0 12 0;
-#X connect 12 0 2 0;
-#X connect 16 0 10 0;
-#X connect 16 1 5 0;
+#X connect 2 0 12 0;
+#X connect 3 0 4 1;
+#X connect 4 0 12 1;
+#X connect 5 0 2 0;
+#X connect 9 0 10 0;
+#X connect 10 0 2 0;
+#X connect 12 0 8 0;
+#X connect 12 1 4 0;

Modified: trunk/doc/flow_classes/#rotate-help.pd
==============================================================================
--- trunk/doc/flow_classes/#rotate-help.pd (original)
+++ trunk/doc/flow_classes/#rotate-help.pd Sat Oct 24 17:13:13 2009
@@ -1,7 +1,5 @@
-#N canvas 350 51 558 534 10;
+#N canvas 689 0 558 534 10;
 #X obj 180 121 #rotate;
-#X text 8 298 GRID;
-#X text 11 370 INT;
 #X text 4 26 The [#rotate] performs rotations on indexmaps and polygons
 and such objects.;
 #X obj 163 83 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
@@ -9,38 +7,39 @@
 #X obj 80 98 #in;
 #X obj 227 99 hsl 40 15 0 35999 0 0 empty empty empty -2 -6 0 8 -262144
 -1 -1 0 1;
-#X text 11 470 GRID;
 #X obj 80 121 #remap_image;
 #X obj 80 142 #out window \, title #rotate;
 #X obj 9 57 tgl 15 0 empty empty empty 0 -6 0 8 -233017 -1 -1 0 1;
 #X obj 9 76 metro 100;
-#X text 57 297 The Grid passed in inlet 0 will be the grid on which
+#X text 195 273 The Grid passed in inlet 0 will be the grid on which
 the rotation will be performed.;
-#X text 57 369 An integer from 0 to 35999 (36000 is the same as 0)
-passed in inlet 1 will determine the angle of rotation for the object
-to be rotated.;
 #X floatatom 243 123 7 0 0 0 - - -;
 #X msg 80 57 open b001.jpg;
 #X obj 0 0 doc_h;
 #X obj 3 250 doc_i 2;
-#X text 11 194 INT;
-#X text 60 195 [#rotate] accepts an integer number (0 to 35999) as
+#X text 197 193 [#rotate] accepts an integer number (0 to 35999) as
 a creation argument which initializes the first angle of rotation.
 ;
 #X obj 3 169 doc_c 1;
-#X text 65 472 Outputs the result of the rotation and needs to be sent
-to a [#remap_image] to be visualised.;
-#X obj 3 421 doc_o 1;
-#X obj 14 445 doc_oo 0;
+#X text 189 415 Outputs the result of the rotation and needs to be
+sent to a [#remap_image] to be visualised.;
+#X obj 3 391 doc_o 1;
+#X obj 14 415 doc_oo 0;
 #X obj 14 274 doc_ii 0;
 #X obj 14 344 doc_ii 1;
-#X connect 0 0 8 1;
-#X connect 4 0 5 0;
-#X connect 5 0 8 0;
-#X connect 6 0 0 1;
-#X connect 6 0 14 0;
-#X connect 8 0 9 0;
-#X connect 8 1 0 0;
-#X connect 10 0 11 0;
-#X connect 11 0 5 0;
-#X connect 15 0 5 0;
+#X obj 14 193 doc_cc 0;
+#X obj 100 193 doc_m c0 float;
+#X obj 100 273 doc_m i0 grid;
+#X obj 100 344 doc_m i1 float;
+#X text 198 345 same as arg 0;
+#X obj 100 415 doc_m o0 grid;
+#X connect 0 0 5 1;
+#X connect 2 0 3 0;
+#X connect 3 0 5 0;
+#X connect 4 0 0 1;
+#X connect 4 0 10 0;
+#X connect 5 0 6 0;
+#X connect 5 1 0 0;
+#X connect 7 0 8 0;
+#X connect 8 0 3 0;
+#X connect 11 0 3 0;

Modified: trunk/doc/flow_classes/#spread-help.pd
==============================================================================
--- trunk/doc/flow_classes/#spread-help.pd (original)
+++ trunk/doc/flow_classes/#spread-help.pd Sat Oct 24 17:13:13 2009
@@ -1,4 +1,4 @@
-#N canvas 306 100 561 544 10;
+#N canvas 673 0 561 544 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;
@@ -29,15 +29,31 @@
 #X obj 148 124 #in;
 #X obj 249 247 shunt;
 #X obj 0 0 doc_h;
-#X obj 3 371 doc_c 1;
-#X obj 3 491 doc_o 1;
-#X obj 3 419 doc_i 2;
+#X obj 3 491 doc_c 1;
+#X obj 3 611 doc_o 1;
+#X obj 3 539 doc_i 2;
 #X text 210 147 switch displays \, use this to get an image into the
 #store;
-#X obj 14 515 doc_oo 0;
-#X obj 14 443 doc_ii 0;
-#X obj 14 467 doc_ii 1;
-#X obj 14 395 doc_cc 0;
+#X obj 14 635 doc_oo 0;
+#X obj 14 563 doc_ii 0;
+#X obj 14 587 doc_ii 1;
+#X obj 14 515 doc_cc 0;
+#X obj 100 587 doc_m i1;
+#X obj 100 563 doc_m i0 grid;
+#X obj 100 635 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
+noise. The resulting values may be out of range \, so you may need
+to clip them using min/max.;
+#X obj 100 515 doc_m c0 float;
+#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
+in maximum number of pixels + 1 even values translate the whole image
+by half a pixel due to rounding .;
 #X connect 1 0 12 0;
 #X connect 2 0 23 1;
 #X connect 3 0 21 1;

Modified: trunk/doc/reference.xml
==============================================================================
--- trunk/doc/reference.xml (original)
+++ trunk/doc/reference.xml Sat Oct 24 17:13:13 2009
@@ -1,89 +1,3 @@
-	<class name="#spread">
-		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" effect.
-		
-		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.
-
-		<method name="init">
-			<arg name="factor">same as inlet 1</arg>
-		</method>
-
-		<inlet id="0">
-			<method name="grid"><arg name="grid" type="grid"/>a coordinate map.</method>
-		</inlet>
-		<inlet id="1">
-			<method name="int">a spread factor.</method>
-		</inlet>
-		<outlet id="0">
-			<method name="grid"><arg name="grid" type="grid"/>a coordinate map.</method>
-		</outlet>
-
-
-		[#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.
-		
-
-		 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.
-
-	</class>
-
-	<class name="#rotate">
-		performs rotations on indexmaps and polygons and such.
-		
-		<method name="init">
-			<arg name="angle" type="0...35999"/>
-		</method>
-		<inlet id="0"><method name="grid">
-			<arg name="grid" type="grid(anyA 2)"/></method></inlet>
-		<inlet id="1"><method name="int">rotation angle; 0...36000</method>
-		</inlet>
-		<outlet id="0"><method name="grid">
-			<arg name="grid" type="grid(anyA 2)"/>
-		</method></outlet>
-	</class>
-
-	<class name="#remap_image">
-		if you chain indexmap (coordinate) transformations from outlet 1
-		to inlet 1, then sending an image in inlet 0 will emit its
-		deformation out of outlet 0.
-
-		<inlet id="0"/>
-		<inlet id="1"/>
-		<outlet id="0"/>
-		<outlet id="1"/>
-	</class>
-	<class name="#dim">
-		Returns list of dimensions as a grid. Given a grid sized like Dim(240,320,4), 
-		[#dim] will return a grid like Dim(3), whose values are 240, 320, 4. 
-
-		<method name="init">
-			no arguments.
-		</method>
-		<inlet id="0">
-			<method name="grid"><arg name="grid" type="grid(dims...)"/>
-				ignores any data contained within.
-				sends a grid dim(length of dims) containing dims.
-			</method>
-		</inlet>
-		<outlet id="0">
-			<method name="grid"><arg name="grid" type="grid(rank)"/>
-				the list of dimensions of the incoming grid.
-			</method>
-		</outlet>
-	</class>
-
-	<class name="#type">
-		gives a symbol representing the numeric type of the grid received.
-		
-		<outlet id="0"><method name="&lt;numeric type symbol&gt;"/></outlet>
-	</class>
-
 	<class name="display">
 		GUI object equivalent to [print] and [#print].
 		<method name="(any)">



More information about the Gridflow-cvs mailing list