#N canvas 10 20 769 486 10;
#X obj 252 258 gemhead;
#X obj 252 313 pix_image ../data/fractal.JPG;
#X obj 252 343 pix_colormatrix;
#X msg 351 223 0 1 0 0 0 1 1 0 0;
#X msg 321 157 0 0 1 1 0 0 0 1 0;
#X msg 284 61 1 0 0 0 0 1 0 1 0;
#X obj 252 371 pix_texture;
#X obj 252 411 square;
#X msg 312 110 1 0 0 0 1 0 0 0 1;
#X text 460 156 shift colors: red->[0 \, 0 \, 1]=blue \; green->[1
\, 0 \, 0]=red \; blue->[0 \, 1 \, 0]=green;
#X text 469 97 unity matrix: [1 \, 0 \, 0 \; 0 \, 1 \, 0 \; 0 \, 0
\, 1];
#X text 446 47 swap green and blue: [1 \, 0 \, 0 \; 0 \, 0 \, 1 \;
0 \, 1 \, 0];
#X text 480 210 shift colors: red->[0 \, 1 \, 0]=green \; green->[0
\, 0 \, 1]=blue \; blue->[1 \, 0 \, 0]=red;
#X text 26 23 matrix-multiply the RGB-vector;
#X obj 41 142 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 454 304 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 41 route create;
#X msg 67 70 set destroy;
#X msg 182 68 set create;
#X msg 132 112 create \, 1;
#X msg 238 112 destroy;
#N canvas 87 154 247 179 Gem.init 0;
#X obj 118 46 loadbang;
#X msg 118 81 reset;
#X obj 118 113 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 289 80 pd Gem.init;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 6 0;
#X connect 3 1 5 0;
#X connect 3 1 7 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X connect 8 0 0 0;
#X restore 46 186 pd gemwin;
#X msg 46 162 create;
#X text 42 142 Create window and render;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 6 0;
#X connect 3 0 2 1;
#X connect 4 0 2 1;
#X connect 5 0 2 1;
#X connect 6 0 7 0;
#X connect 8 0 2 1;
#X connect 15 0 16 0;
#X connect 16 0 15 0;
