aboutsummaryrefslogtreecommitdiff
path: root/packages/noncvs/windows/extra/Gem/examples/04.pix/01.image.pd
blob: 9ac6066be505aa068be99b9503ee0840038e9a20 (plain)
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
#N canvas 452 108 681 502 12;
#X text 172 376 click on the pix_image object to display the loaded
image with imgview;
#X obj 179 199 gemhead;
#X obj 179 351 pix_draw;
#X text 196 18 display an image using pix_draw;
#X obj 179 227 pix_image ../data/dancer.JPG;
#X obj 179 309 translateXYZ;
#X floatatom 315 261 0 0 0 0 - - -;
#X text 176 177 notice that Z doesn't change the size of the image
;
#X text 62 442 On most machines \, pix_draw is MUCH slower than pix_texture.
However \, pix_draw is easier to use in an example patch.;
#X obj 20 69 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 25 113 pd gemwin;
#X msg 25 89 create;
#X text 21 69 Create window and render;
#X obj 315 284 / 100;
#X floatatom 264 261 0 0 0 0 - - -;
#X obj 264 284 / 100;
#X floatatom 213 261 0 0 0 0 - - -;
#X obj 213 284 / 100;
#X connect 1 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 2 0;
#X connect 6 0 13 0;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 13 0 5 3;
#X connect 14 0 15 0;
#X connect 15 0 5 2;
#X connect 16 0 17 0;
#X connect 17 0 5 1;