[Gridflow-cvs] [svn] commit: r6191 - in /trunk: abstractions/#text_to_image.pd doc/flow_classes/#text_to_image-help.pd

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Aug 17 23:48:44 EDT 2010


Author: pboivin
Date: Tue Aug 17 23:48:44 2010
New Revision: 6191

Log:
[#text_to_image]: now accepts a grid of 2 dimensions as multiple lines of text

Modified:
    trunk/abstractions/#text_to_image.pd
    trunk/doc/flow_classes/#text_to_image-help.pd

Modified: trunk/abstractions/#text_to_image.pd
==============================================================================
--- trunk/abstractions/#text_to_image.pd (original)
+++ trunk/abstractions/#text_to_image.pd Tue Aug 17 23:48:44 2010
@@ -1,41 +1,75 @@
-#N canvas 674 0 450 300 10;
-#X obj 16 14 inlet text;
-#X obj 16 265 outlet image;
-#X obj 291 132 inlet font;
-#X obj 16 155 #store;
-#X obj 203 38 inlet colors;
-#X text 203 2 0: background;
-#X text 203 18 1: foreground;
-#X obj 203 66 t a;
-#X obj 16 174 #store;
-#X obj 229 66 loadbang;
-#X text 67 157 font;
-#X text 68 174 palette;
-#X obj 16 212 t a a;
-#X obj 154 161 #dim;
-#X obj 154 180 #unpack 4;
-#X obj 174 200 *;
-#X obj 16 193 #transpose 0 1;
-#X obj 154 228 pack 0 0 0;
-#X msg 229 85 2 3 # 0 0 0 255 255 255;
-#X obj 16 33 #outer ignore (0);
-#X obj 16 238 #redim ();
-#X connect 0 0 19 0;
+#N canvas 638 44 351 424 10;
+#X obj 38 64 inlet text;
+#X obj 38 373 outlet image;
+#X obj 233 159 inlet font;
+#X obj 38 176 #store;
+#X obj 145 64 inlet colors;
+#X text 145 27 0: background;
+#X text 145 43 1: foreground;
+#X obj 145 179 t a;
+#X obj 38 196 #store;
+#X obj 158 101 loadbang;
+#X text 83 175 font;
+#X text 84 193 palette;
+#X obj 38 236 t a a;
+#X obj 89 253 #dim;
+#X msg 158 121 2 3 # 0 0 0 255 255 255;
+#X obj 38 353 #redim ();
+#X obj 120 253 display;
+#X obj 89 273 #unpack 5;
+#X obj 89 323 pack 0 0 0;
+#X obj 117 303 *;
+#X obj 89 303 *;
+#X obj 38 216 #transpose 1 2;
+#N canvas 8 63 450 300 reshape 0;
+#X obj 49 92 #dim;
+#X obj 49 112 #dim;
+#X obj 49 132 #to_f;
+#X obj 49 152 range 2 3 4;
+#X obj 112 181 gf/error expecting 1 or 2 dimensions (got %d);
+#X obj 31 181 shunt 4;
+#X obj 57 201 #outer ignore (0);
+#X obj 57 221 #transpose;
+#X obj 31 22 inlet;
+#X obj 31 42 #outer ignore (0);
+#X obj 31 62 #t;
+#X obj 70 251 outlet;
+#X connect 0 0 1 0;
+#X connect 1 0 2 0;
+#X connect 2 0 3 0;
+#X connect 3 0 4 0;
+#X connect 3 1 5 1;
+#X connect 3 2 5 1;
+#X connect 3 3 4 0;
+#X connect 5 2 6 0;
+#X connect 5 3 11 0;
+#X connect 6 0 7 0;
+#X connect 7 0 11 0;
+#X connect 8 0 9 0;
+#X connect 9 0 10 0;
+#X connect 10 0 5 0;
+#X connect 10 1 0 0;
+#X restore 38 101 pd reshape;
+#X connect 0 0 22 0;
 #X connect 2 0 3 1;
 #X connect 3 0 8 0;
 #X connect 4 0 7 0;
-#X connect 8 0 16 0;
-#X connect 9 0 18 0;
-#X connect 12 0 20 0;
+#X connect 7 0 8 1;
+#X connect 8 0 21 0;
+#X connect 9 0 14 0;
+#X connect 12 0 15 0;
 #X connect 12 1 13 0;
-#X connect 13 0 14 0;
-#X connect 14 0 17 0;
-#X connect 14 1 15 0;
-#X connect 14 2 15 1;
-#X connect 14 3 17 2;
-#X connect 15 0 17 1;
-#X connect 16 0 12 0;
-#X connect 17 0 20 1;
-#X connect 18 0 8 1;
-#X connect 19 0 3 0;
-#X connect 20 0 1 0;
+#X connect 13 0 16 0;
+#X connect 13 0 17 0;
+#X connect 14 0 7 0;
+#X connect 15 0 1 0;
+#X connect 17 0 20 0;
+#X connect 17 1 20 1;
+#X connect 17 2 19 0;
+#X connect 17 3 19 1;
+#X connect 17 4 18 2;
+#X connect 18 0 15 1;
+#X connect 19 0 18 1;
+#X connect 20 0 18 0;
+#X connect 21 0 12 0;
+#X connect 22 0 3 0;

Modified: trunk/doc/flow_classes/#text_to_image-help.pd
==============================================================================
--- trunk/doc/flow_classes/#text_to_image-help.pd (original)
+++ trunk/doc/flow_classes/#text_to_image-help.pd Tue Aug 17 23:48:44 2010
@@ -1,24 +1,52 @@
-#N canvas 685 0 632 345 10;
+#N canvas 442 58 632 617 10;
 #X obj 0 0 doc_h;
-#X obj 33 40 #text_to_image;
-#X obj 3 71 doc_c 0;
-#X obj 3 111 doc_i 3;
-#X obj 3 256 doc_o 1;
-#X obj 14 141 doc_ii 0;
-#X obj 14 176 doc_ii 1;
-#X obj 14 211 doc_ii 2;
-#X obj 97 141 doc_m i0 bang;
-#X text 232 141 transforming the data into an image suitable for #draw_image.
-;
-#X obj 14 286 doc_oo 0;
-#X obj 97 286 doc_m o0 grid;
-#X obj 97 211 doc_m i2 grid;
-#X obj 97 176 doc_m i1 grid;
-#X text 232 176 2 by 3 matrix representing the colours to use (e.g.
+#X obj 3 320 doc_c 0;
+#X obj 3 360 doc_i 3;
+#X obj 3 501 doc_o 1;
+#X obj 14 390 doc_ii 0;
+#X obj 14 434 doc_ii 1;
+#X obj 14 469 doc_ii 2;
+#X obj 14 531 doc_oo 0;
+#X obj 97 531 doc_m o0 grid;
+#X obj 97 469 doc_m i2 grid;
+#X obj 97 434 doc_m i1 grid;
+#X text 232 434 2 by 3 matrix representing the colours to use (e.g.
 (2 3 # 0 170 0 255 255 0) means yellow on green);
-#X obj 0 316 doc_f;
-#X text 232 211 font grid \, for example \, from [#in grid lucida-typewriter-12.grid]
-;
-#X connect 8 1 9 0;
-#X connect 12 1 16 0;
-#X connect 13 1 14 0;
+#X obj 0 583 doc_f;
+#X obj 3 563 doc_also;
+#X obj 30 177 #text_to_image;
+#X obj 131 89 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -1
+-1;
+#X obj 30 197 #draw_image put;
+#X obj 131 130 #import (4 64);
+#X obj 131 110 #for 0 256 1;
+#X msg 30 110 symbol patate;
+#X obj 30 130 #import;
+#X obj 131 157 loadbang;
+#X obj 131 177 #in lucida-typewriter-12.grid;
+#X obj 30 227 #see;
+#X text 243 41 Takes a grid containing ascii values \, extracts portions
+of a GridFlow font file corresponding to each character and outputs
+an image suitable for #draw_image.;
+#X obj 97 390 doc_m i0 grid;
+#X text 232 469 font grid;
+#X obj 103 563 #import;
+#X obj 157 563 #draw_image;
+#X text 232 390 grid containing the ascii values to be printed.;
+#X text 232 412 A grid of 2 dimensions will be considered as multiple
+lines.;
+#X connect 9 1 26 0;
+#X connect 10 1 11 0;
+#X connect 13 1 27 0;
+#X connect 13 1 28 0;
+#X connect 14 0 16 0;
+#X connect 15 0 18 0;
+#X connect 16 0 23 0;
+#X connect 17 0 14 0;
+#X connect 18 0 17 0;
+#X connect 19 0 20 0;
+#X connect 20 0 14 0;
+#X connect 21 0 22 0;
+#X connect 22 0 14 2;
+#X connect 25 1 29 0;
+#X connect 25 1 30 0;



More information about the Gridflow-cvs mailing list