#N canvas 16 226 710 395 10;
#X declare -lib Gem;
#X text 518 8 GEM object;
#X obj 8 216 cnv 15 430 160 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 39 218 Inlets:;
#X text 39 347 Outlets:;
#X obj 8 176 cnv 15 430 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 175 Arguments:;
#X obj 8 66 cnv 15 430 100 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 449 67 cnv 15 250 300 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 453 50 Example:;
#X obj 514 303 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X obj 452 157 cnv 15 240 120 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X text 71 31 Class: pix object;
#X text 27 360 Outlet 1: gemlist;
#X text 33 232 Inlet 1: gemlist;
#X obj 451 315 square 3;
#X obj 451 256 pix_snap2tex;
#X obj 568 133 sphere;
#X obj 451 74 gemhead 50;
#X obj 568 75 gemhead 49;
#X obj 571 256 tgl 15 1 empty empty texture_on/off 20 7 0 8 #fcfcfc #000000 #000000 1 1;
#X obj 482 217 spigot;
#X obj 528 217 t b f;
#X obj 514 198 tgl 15 0 empty empty empty 0 -6 0 8 #fcfcfc #000000 #000000 0 1;
#X msg 570 209 0 0;
#X msg 570 233 256 256;
#X text 50 12 Synopsis: [pix_snap2tex];
#X text 29 67 Description: take a screenshot and texture it;
#X text 13 81 When banged [pix_snap2tex] will take a snapshot of the current render buffer and immediately texture it to any geometric object attached. You can specify the close-up you want to be grabbed via offset/dimension-pairs.;
#X text 12 135 When grabbing \, be sure that something is in the rendering-buffer \, else you will get a black texture.;
#X text 33 245 Inlet 1: bang: do grab!;
#X text 33 257 Inlet 1: [1|0]: turn texturing on/off (default:1);
#X text 33 269 Inlet 1: message: quality [0|1]: turn texture-resampling on(default)/off;
#X text 33 295 Inlet 2: list: offsetX offsetY (in pixels \; default: 0 0);
#X text 33 321 Inlet 3: list: dimenX dimenY (in pixels \; default: window-size);
#X text 63 186 list: [offsetX offsetY [dimX dimY]];
#X floatatom 527 75 5 0 0 0 - - - 0;
#X obj 451 114 rotate 0 1 0 0;
#X obj 568 113 translate -1 0 1 0;
#X obj 451 94 translate 1 0 1 0;
#X obj 451 197 t a b;
#X obj 451 281 color 0.7 0.7 0.7;
#X obj 568 94 rotate 0 1 1 1;
#N canvas 0 0 297 145 count 0;
#X obj 116 39 t b;
#X obj 116 60 i;
#X obj 143 61 + 1;
#X obj 170 62 % 360;
#X obj 116 17 inlet;
#X obj 124 94 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 0 5 0;
#X connect 2 0 3 0;
#X connect 3 0 1 1;
#X connect 4 0 0 0;
#X restore 644 74 pd count;
#X text 624 233 dimension;
#X text 598 211 offset;
#X text 506 171 drawn but before the square;
#X obj 474 164 bng 25 250 50 0 empty empty empty 0 -6 0 8 #fcfcfc #000000 #000000;
#X text 504 158 SNAP! after the sphere is;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION take a screenshot and texture it;
#X text 10 65 KEYWORDS Gem pix image;
#X text 20 85 INLET_0 gemlist bang bool quality;
#X text 20 105 INLET_1 list;
#X text 20 125 INLET_2 list;
#X text 20 145 OUTLET_0 gemlist;
#X text 10 165 AUTHOR IOhannes m zmölnig;
#X text 10 185 LICENSE GPL v2;
#X restore 588 8 pd META;
#X obj 519 309 _gemwin;
#X connect 15 0 40 0;
#X connect 17 0 38 0;
#X connect 18 0 41 0;
#X connect 18 0 42 0;
#X connect 19 0 15 0;
#X connect 20 0 21 0;
#X connect 21 0 15 0;
#X connect 21 1 22 0;
#X connect 22 0 20 1;
#X connect 23 0 15 1;
#X connect 24 0 15 2;
#X connect 35 0 36 1;
#X connect 36 0 39 0;
#X connect 37 0 16 0;
#X connect 38 0 36 0;
#X connect 39 0 15 0;
#X connect 39 1 20 0;
#X connect 40 0 14 0;
#X connect 41 0 37 0;
#X connect 42 0 41 1;
#X connect 46 0 22 0;
