/usr/share/gem/examples/02.advanced/09.SnapshotSave.pd is in gem-doc 1:0.93.3-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | #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 0 6 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 51 96 pd Gem.init;
#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;
#N canvas 340 107 682 322 gemwin 0;
#X obj 102 122 tgl 15 0 \$0-gemstart \$0-gemstart empty 17 7 0 10 -262144
-1 -1 1 1;
#X obj 102 161 r \$0-gemstart;
#X obj 102 182 select 1 0;
#X msg 102 214 create \, 1;
#X msg 177 215 destroy;
#X obj 102 239 t a;
#X obj 318 54 inlet;
#X obj 318 255 gemwin;
#X obj 318 100 t a a;
#X obj 318 287 outlet;
#X obj 350 128 route create destroy;
#X obj 350 150 t b;
#X msg 350 172 1;
#X obj 390 150 t b;
#X msg 390 172 0;
#X obj 350 195 t f;
#X msg 350 219 set \$1;
#X text 118 122 rendering;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 1 4 0;
#X connect 3 0 5 0;
#X connect 4 0 5 0;
#X connect 5 0 8 0;
#X connect 6 0 8 0;
#X connect 7 0 9 0;
#X connect 8 0 7 0;
#X connect 8 1 10 0;
#X connect 10 0 11 0;
#X connect 10 1 13 0;
#X connect 11 0 12 0;
#X connect 12 0 15 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 51 113 pd gemwin;
#X obj 60 321 gemhead;
#X obj 60 341 translate 1 0 1 0;
#X obj 60 362 color 0 1 0;
#X obj 60 382 sphere 0.5;
#X obj 652 326 pix_write;
#X connect 0 0 34 0;
#X connect 1 0 2 0;
#X connect 2 0 5 0;
#X connect 2 1 24 0;
#X connect 3 0 4 0;
#X connect 4 0 27 1;
#X connect 5 0 19 0;
#X connect 6 0 16 0;
#X connect 7 0 8 0;
#X connect 9 0 39 0;
#X connect 10 0 12 1;
#X connect 11 0 39 0;
#X connect 12 0 21 0;
#X connect 13 0 12 0;
#X connect 14 0 15 0;
#X connect 15 0 17 0;
#X connect 17 0 6 0;
#X connect 18 0 8 1;
#X connect 19 0 17 0;
#X connect 20 0 18 0;
#X connect 21 0 23 0;
#X connect 21 1 22 1;
#X connect 21 2 39 0;
#X connect 21 3 11 0;
#X connect 22 0 14 0;
#X connect 23 0 22 0;
#X connect 24 0 27 0;
#X connect 25 0 24 1;
#X connect 26 0 3 0;
#X connect 26 0 5 1;
#X connect 26 0 5 2;
#X connect 26 0 5 3;
#X connect 27 0 26 0;
#X connect 28 0 10 0;
#X connect 29 0 25 0;
#X connect 32 0 39 0;
#X connect 33 0 32 0;
#X connect 35 0 36 0;
#X connect 36 0 37 0;
#X connect 37 0 38 0;
|