#N canvas 367 0 632 642 10;
#X obj 168 150 #in;
#X obj 135 169 #store;
#X obj 135 46 tgl 15 0 empty empty empty 0 -6 0 8 -44683 -1 -1 0 1
;
#X obj 135 74 metro 40;
#X obj 135 283 #out window \, title #draw_image-help;
#X obj 195 169 #in;
#X obj 387 238 #dim;
#X obj 387 257 #to_list;
#X obj 387 276 unpack f f;
#X obj 393 295 pack f f;
#X obj 393 314 # / 2;
#X obj 368 314 # -;
#X obj 135 307 #mouse;
#X msg 195 150 load g001.jpg;
#X msg 168 131 load r001.jpg;
#X text 135 331 Move mouse cursor to change layer position;
#X obj 0 0 doc_h;
#X obj 3 582 doc_i 3;
#X obj 3 889 doc_o 1;
#X obj 14 919 doc_oo 0;
#X obj 14 612 doc_ii 0;
#X obj 14 835 doc_ii 1;
#X obj 14 857 doc_ii 2;
#X text 232 397 Normally \, you would use the "put" operator \; but
others (like + and ^) can be interesting for color effects.;
#X text 232 612 Background image.;
#X msg 321 197 tile;
#X text 232 445 Foreground image.;
#X text 232 800 If 1 \, foreground image will be repeated to cover
the background image.;
#X text 232 656 If 1 \, foreground image (inlet 1) will be combined
with background image (inlet 0) \, and then blended with background
image according to transparency of foreground image \, and then inserted
in the result. If 0 \, the blending doesn't occur \, as the transparency
level is considered "opaque". Note that with alpha enabled \, the last
channel of foreground image is cnsidered to represent transparency.
;
#X text 232 919 Resulting image.;
#X obj 97 397 doc_m c0 numop;
#X obj 97 612 doc_m i0 grid;
#X obj 97 778 doc_m i0 tile;
#X obj 97 634 doc_m i0 alpha;
#X text 232 634 \$1=flag;
#X text 232 778 \$1=flag;
#X obj 97 835 doc_m i1 grid;
#X obj 97 919 doc_m o0 grid;
#X obj 0 971 doc_f;
#X obj 97 756 doc_m i0 op;
#X obj 232 756 doc_same 0;
#X text 232 550 default is (0 0);
#X obj 3 367 doc_c 3;
#X obj 14 397 doc_cc 0;
#X obj 14 445 doc_cc 1;
#X obj 14 502 doc_cc 2;
#X obj 97 445 doc_m c1 grid;
#X obj 97 502 doc_m c2 grid;
#X obj 232 857 doc_same 2;
#X obj 232 835 doc_same 1;
#X obj 168 93 loadbang;
#X obj 168 112 t b b;
#X obj 135 257 #draw_image *>>8;
#X text 153 44 click here then move the mouse in the output window
;
#X text 232 467 default is (1 1 3 #) \, which in rgb means a single
black pixel.;
#X obj 3 951 doc_also;
#X obj 97 857 doc_m i2 grid;
#X text 232 502 Foreground image position (y x). This is where the
top-left of the foreground picture will be put in the background picture.
;
#X obj 103 951 #draw_polygon;
#X obj 193 951 #layer;
#X connect 0 0 1 1;
#X connect 1 0 52 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 4 0 12 0;
#X connect 5 0 6 0;
#X connect 5 0 52 1;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 9 0;
#X connect 8 1 9 1;
#X connect 9 0 10 0;
#X connect 10 0 11 1;
#X connect 11 0 52 2;
#X connect 12 0 11 0;
#X connect 12 1 11 0;
#X connect 12 2 11 0;
#X connect 12 3 11 0;
#X connect 13 0 5 0;
#X connect 14 0 0 0;
#X connect 25 0 52 0;
#X connect 30 1 23 0;
#X connect 31 1 24 0;
#X connect 32 1 35 0;
#X connect 32 1 27 0;
#X connect 33 1 34 0;
#X connect 33 1 28 0;
#X connect 36 1 49 0;
#X connect 37 1 29 0;
#X connect 39 1 40 0;
#X connect 46 1 26 0;
#X connect 46 1 54 0;
#X connect 47 1 57 0;
#X connect 47 1 41 0;
#X connect 50 0 51 0;
#X connect 51 0 14 0;
#X connect 51 1 13 0;
#X connect 52 0 4 0;
#X connect 55 1 58 0;
#X connect 55 1 59 0;
#X connect 56 1 48 0;

