#N canvas 54 216 940 412 10;
#N canvas 338 262 290 225 Gem.init 0;
#X obj 83 30 loadbang;
#X msg 161 76 reset;
#X obj 45 184 outlet;
#X obj 88 51 t b b;
#X msg 45 75 dimen 128 128;
#X msg 71 109 lighting 1;
#X msg 127 171 color 0.5 0.3 1;
#X connect 0 0 3 0;
#X connect 1 0 2 0;
#X connect 3 0 4 0;
#X connect 3 0 5 0;
#X connect 3 1 1 0;
#X connect 4 0 2 0;
#X connect 5 0 2 0;
#X connect 6 0 2 0;
#X restore 101 158 pd Gem.init;
#X obj 44 184 gemwin;
#X msg 34 55 create;
#X msg 53 83 destroy;
#X obj 80 111 tgl 40 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X obj 652 325 pix_write;
#X obj 255 118 gemhead;
#X obj 255 144 render_trigger;
#X obj 332 256 + 1;
#X obj 362 256 % 360;
#X obj 255 279 rotateXYZ;
#X obj 255 359 pix_texture;
#X obj 62 265 gemhead;
#X obj 62 291 world_light;
#X obj 652 251 gemhead 99;
#X obj 548 154 savepanel;
#X msg 673 293 file \$1;
#X obj 420 182 symbol /tmp/gemshot;
#X obj 420 110 bng 30 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 420 280 makefilename %s00000.tif;
#X msg 420 308 open \$1;
#X obj 255 387 square 4;
#X obj 255 334 pix_image;
#X msg 134 269 list 1 1 0.4;
#X obj 255 306 color 1 0.3 1;
#X obj 134 248 loadbang;
#X obj 420 210 t b s b s;
#X obj 420 258 symbol;
#X obj 420 234 del 500;
#X obj 301 188 spigot;
#X obj 338 165 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X floatatom 301 238 5 0 0 0 - - -;
#X obj 301 216 i;
#X obj 548 134 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 338 123 loadbang;
#X text 186 22 similar to the previous example: [pix_write] gets the
current output window and writes it not into a texture but into a file
(TIFF or JPEG);
#X text 492 364 mind the 99: [pix_write] has to be called late \, to
ensure that all that you want is already rendered onto the screen.
;
#X msg 789 285 auto \$1;
#X obj 793 263 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X connect 0 0 1 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 6 0 7 0;
#X connect 7 0 10 0;
#X connect 7 1 29 0;
#X connect 8 0 9 0;
#X connect 9 0 32 1;
#X connect 10 0 24 0;
#X connect 11 0 21 0;
#X connect 12 0 13 0;
#X connect 14 0 5 0;
#X connect 15 0 17 1;
#X connect 16 0 5 0;
#X connect 17 0 26 0;
#X connect 18 0 17 0;
#X connect 19 0 20 0;
#X connect 20 0 22 0;
#X connect 22 0 11 0;
#X connect 23 0 13 1;
#X connect 24 0 22 0;
#X connect 25 0 23 0;
#X connect 26 0 28 0;
#X connect 26 1 27 1;
#X connect 26 2 5 0;
#X connect 26 3 16 0;
#X connect 27 0 19 0;
#X connect 28 0 27 0;
#X connect 29 0 32 0;
#X connect 30 0 29 1;
#X connect 31 0 8 0;
#X connect 31 0 10 1;
#X connect 31 0 10 2;
#X connect 31 0 10 3;
#X connect 32 0 31 0;
#X connect 33 0 15 0;
#X connect 34 0 30 0;
#X connect 37 0 5 0;
#X connect 38 0 37 0;
