aboutsummaryrefslogtreecommitdiff
path: root/Gem/pix_colormatrix-help.pd
blob: d143db80b4a7978ff7cb3df4238754029ce91a16 (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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#N canvas 76 273 636 411 10;
#X declare -lib Gem;
#X text 452 8 GEM object;
#X obj 8 295 cnv 15 430 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 298 Inlets:;
#X text 38 355 Outlets:;
#X obj 8 256 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 255 Arguments:;
#X obj 7 76 cnv 15 430 170 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 443 77 cnv 15 180 310 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 314 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 450 300 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 142 68 set create;
#X msg 132 112 create \, 1;
#X msg 198 112 destroy;
#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 restore 519 353 pd gemwin;
#X msg 519 334 create;
#X text 515 313 Create window:;
#X obj 450 138 cnv 15 160 150 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X text 71 31 Class: pix object;
#X obj 510 85 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#N canvas 0 0 587 366 image 0;
#X obj 77 48 inlet;
#X obj 77 344 outlet;
#X obj 77 205 pix_image examples/data/fractal.JPG;
#X obj 223 55 inlet;
#X msg 223 123 open \$1;
#X obj 223 100 openpanel;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 4 0 2 0;
#X connect 5 0 4 0;
#X restore 451 113 pd image;
#X text 63 266 <none>;
#X text 56 368 Outlet 1: gemlist;
#X text 63 312 Inlet 1: gemlist;
#X obj 451 293 pix_draw;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X text 50 12 Synopsis: [pix_colormatrix];
#X text 29 76 Description: transform the pixel values by a matrix;
#X text 63 325 Inlet 2: list: 9 (RGB) or 16 (RGBA) values \, forming
a matrix.;
#X text 12 94 pix_colormatrix transforms the pixel values by a matrix.
The matrix can be either a 3x3 or a 4x4. If the matrix is a 3x3 \,
then the alpha is set to 1;
#X text 12 135 See the HTML file from Paul Haberli for example matrices.
;
#X text 135 159 the matrix;
#X text 194 226 r g b a;
#X text 194 211 r g b a;
#X text 193 194 r g b a;
#X text 193 178 r g b a;
#X text 93 188 r g b;
#X text 93 204 r g b;
#X text 94 221 r g b;
#X obj 451 266 pix_colormatrix;
#X floatatom 495 165 3 -1 2 0 - - -;
#X floatatom 518 165 3 -1 2 0 - - -;
#X floatatom 541 165 3 -1 2 0 - - -;
#X floatatom 495 189 3 -1 2 0 - - -;
#X floatatom 518 189 3 -1 2 0 - - -;
#X floatatom 541 189 3 -1 2 0 - - -;
#X floatatom 495 213 3 -1 2 0 - - -;
#X floatatom 518 213 3 -1 2 0 - - -;
#X floatatom 541 213 3 -1 2 0 - - -;
#N canvas 0 0 450 300 pack 0;
#X obj 69 169 pack 0 0 0 0 0 0 0 0 0;
#X obj 69 139 t b f;
#X obj 106 139 t b f;
#X obj 143 139 t b f;
#X obj 180 139 t b f;
#X obj 217 139 t b f;
#X obj 254 139 t b f;
#X obj 291 139 t b f;
#X obj 328 139 t b f;
#X obj 32 111 inlet;
#X obj 69 111 inlet;
#X obj 106 111 inlet;
#X obj 143 111 inlet;
#X obj 180 111 inlet;
#X obj 217 111 inlet;
#X obj 254 111 inlet;
#X obj 291 111 inlet;
#X obj 328 111 inlet;
#X obj 69 196 outlet;
#X connect 0 0 18 0;
#X connect 1 0 0 0;
#X connect 1 1 0 1;
#X connect 2 0 0 0;
#X connect 2 1 0 2;
#X connect 3 0 0 0;
#X connect 3 1 0 3;
#X connect 4 0 0 0;
#X connect 4 1 0 4;
#X connect 5 0 0 0;
#X connect 5 1 0 5;
#X connect 6 0 0 0;
#X connect 6 1 0 6;
#X connect 7 0 0 0;
#X connect 7 1 0 7;
#X connect 8 0 0 0;
#X connect 8 1 0 8;
#X connect 9 0 0 0;
#X connect 10 0 1 0;
#X connect 11 0 2 0;
#X connect 12 0 3 0;
#X connect 13 0 4 0;
#X connect 14 0 5 0;
#X connect 15 0 6 0;
#X connect 16 0 7 0;
#X connect 17 0 8 0;
#X restore 474 236 pd pack 9 . . .;
#X msg 471 164 1;
#X obj 471 145 loadbang;
#X obj 518 8 declare -lib Gem;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 17 0;
#X connect 16 0 17 1;
#X connect 17 0 37 0;
#X connect 37 0 21 0;
#X connect 38 0 47 0;
#X connect 39 0 47 1;
#X connect 40 0 47 2;
#X connect 41 0 47 3;
#X connect 42 0 47 4;
#X connect 43 0 47 5;
#X connect 44 0 47 6;
#X connect 45 0 47 7;
#X connect 46 0 47 8;
#X connect 47 0 37 1;
#X connect 48 0 38 0;
#X connect 48 0 42 0;
#X connect 48 0 46 0;
#X connect 49 0 48 0;