#N canvas 285 331 650 585 10;
#X declare -lib Gem;
#X text 452 8 GEM object;
#X obj 9 326 cnv 15 430 240 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 39 328 Inlets:;
#X text 38 462 Outlets:;
#X obj 8 286 cnv 15 430 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 285 Arguments:;
#X obj 7 56 cnv 15 430 220 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 449 77 cnv 15 170 300 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 453 60 Example:;
#X obj 450 106 cnv 15 160 150 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 451 84 gemhead;
#X text 71 31 Class: pix object;
#X text 46 475 Outlet 1: gemlist;
#X text 53 342 Inlet 1: gemlist;
#X text 50 12 Synopsis: [pix_set];
#X msg 471 150 RGBA;
#X msg 471 110 GREY;
#X msg 471 130 RGB;
#X text 63 296 <width> <height>;
#X text 21 79 [pix_set] will allow you to set the image-data of a pixel with one long list of (m*n) pixel-tuples.;
#X text 22 109 The size of the image can be set with creation-arguments. It defaults to 64*64.;
#X text 22 143 How the list is interpreted depends on the mode \, [pix_set] is set to. When in RGBA-Mode (default) you should pass a float-list of the form "R1 G1 B1 A1 R2 G2 B2 A2 ...". In RGB-Mode the float-list will be of the form "R1 G1 B1 R2 G2 B2 ...". In GREY-Mode the float-list is simply "V1 V2 ...";
#X text 18 220 If the list does not contain enough data \, the rest of the image will be set to 0 (black).;
#X text 16 257 The image will always be in RGBA-color-space !;
#X text 52 436 Inlet 2: list : interleaved image-data (R1 G1 B1 A1 R2 B2...) or (R1 B1 G1 R2 B2...) or (L1 L2 L3...);
#X text 29 56 Description: set the pixel-data of an image;
#X text 460 476 see also;
#X obj 530 477 pix_dump;
#X obj 451 236 pix_set 4 4;
#X msg 514 133 1 0.25 0.5 0.75 1 0 0 0 1 1 1 0 1 0 1 0 1 1, f 12;
#X text 53 370 Inlet 1: bang send image (to update texture for example);
#X text 53 385 Inlet 1: fill : set the whole image with value (value could be G \, RGB or RGBA);
#X text 53 411 Inlet 1: dimen: set the size of the image;
#X obj 524 216 r pix_set_in;
#X text 447 511 and example/04.pix/27.bitmap_font.pd, f 32;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION set the pixel-data of an image;
#X text 10 65 KEYWORDS Gem pix image;
#X text 20 85 INLET_0 gemlist RGBA RGB GREY bang fill set;
#X text 20 105 INLET_1 list;
#X text 20 125 OUTLET_0 gemlist;
#X text 10 145 AUTHOR IOhannes m zmölnig;
#X text 10 165 LICENSE GPL v2;
#X restore 518 8 pd META;
#N canvas 476 50 717 362 advanced 0;
#X msg 26 210 dimen 16 16;
#X msg 57 238 dimen 4 4;
#X msg 24 93 fill \$1 \, bang;
#X floatatom 24 76 5 0 1 0 - - - 0;
#X msg 186 114 fill \$1 \$2 \$3 \$4 \, bang;
#X obj 186 92 pack 0 0 0 0;
#X floatatom 186 47 5 0 1 0 - - - 0;
#X floatatom 226 47 5 0 1 0 - - - 0;
#X floatatom 266 47 5 0 1 0 - - - 0;
#X floatatom 312 48 5 0 1 0 - - - 0;
#X obj 24 177 s pix_set_in;
#X text 33 30 fill message fill the whole image with the given values;
#X text 174 133 in RGBA mode you can set each channel;
#X obj 312 64 t b f;
#X obj 266 64 t b f;
#X obj 226 64 t b f;
#X floatatom 446 47 5 0 1 0 - - - 0;
#X floatatom 486 47 5 0 1 0 - - - 0;
#X floatatom 526 47 5 0 1 0 - - - 0;
#X obj 526 64 t b f;
#X obj 486 64 t b f;
#X text 457 135 in RGB mode you can set each channel;
#X msg 446 114 fill \$1 \$2 \$3 \, bang;
#X obj 446 92 pack 0 0 0;
#X obj 26 315 s pix_set_in;
#X text 105 210 set the size of the image;
#X obj 154 292 bng 15 250 50 0 empty empty empty 17 7 0 10 #fcfcfc #000000 #000000;
#X text 176 293 send the image;
#X msg 63 264 set 4 4;
#X text 129 267 deprecated alias for "dimen";
#X obj 466 331 s pix_set_in;
#X msg 495 223 colorspace RGBA;
#X text 494 244 deprecated direct messages to set the colorspace:, f 27;
#X msg 504 274 RGBA;
#X msg 504 294 RGB;
#X msg 551 294 GREY;
#X connect 0 0 24 0;
#X connect 1 0 24 0;
#X connect 2 0 10 0;
#X connect 3 0 2 0;
#X connect 4 0 10 0;
#X connect 5 0 4 0;
#X connect 6 0 5 0;
#X connect 7 0 15 0;
#X connect 8 0 14 0;
#X connect 9 0 13 0;
#X connect 13 0 5 0;
#X connect 13 1 5 3;
#X connect 14 0 5 0;
#X connect 14 1 5 2;
#X connect 15 0 5 0;
#X connect 15 1 5 1;
#X connect 16 0 23 0;
#X connect 17 0 20 0;
#X connect 18 0 19 0;
#X connect 19 0 23 0;
#X connect 19 1 23 2;
#X connect 20 0 23 0;
#X connect 20 1 23 1;
#X connect 22 0 10 0;
#X connect 23 0 22 0;
#X connect 26 0 24 0;
#X connect 28 0 24 0;
#X connect 31 0 30 0;
#X connect 33 0 30 0;
#X connect 34 0 30 0;
#X connect 35 0 30 0;
#X restore 514 111 pd advanced;
#X obj 472 310 _gemwin \; 0 \; 0 \; color 0.5 0.5 0.5;
#X obj 451 274 _pix2rectangle 3 \; quality 0;
#X obj 460 174 symbol;
#X msg 460 194 colorspace \$1;
#X text 53 355 Inlet 1: colorspace RGBA|RGB|GREY : set format of input-data;
#X connect 10 0 28 0;
#X connect 15 0 39 0;
#X connect 16 0 39 0;
#X connect 17 0 39 0;
#X connect 28 0 38 0;
#X connect 29 0 28 1;
#X connect 33 0 28 0;
#X connect 39 0 40 0;
#X connect 40 0 28 0;
