aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/doc/flow_classes/#downscale_by-help.pd
blob: 14f427db9603c917c1c1f01e98847a8200364934 (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
#N canvas 676 0 632 699 10;
#X obj 181 115 metro 10;
#X obj 181 96 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X floatatom 251 130 5 0 0 0 - - -;
#X obj 165 144 #in;
#X msg 165 70 open bluemarble.jpg \, bang;
#X floatatom 295 143 5 0 0 0 - - -;
#X obj 251 162 #pack 2;
#X obj 165 186 #downscale_by;
#X obj 165 212 #out window;
#X text 9 24 Scales down a picture by a specified amount.;
#X obj 103 650 #scale_to;
#X obj 169 650 #scale_by;
#X obj 0 0 doc_h;
#X obj 3 650 doc_also;
#X obj 3 588 doc_o 1;
#X obj 14 618 doc_oo 0;
#X obj 3 491 doc_i 2;
#X obj 14 521 doc_ii 0;
#X obj 14 556 doc_ii 1;
#X obj 14 280 doc_cc 0;
#X obj 97 280 doc_m c0 grid;
#X obj 3 250 doc_c 1..2;
#X obj 97 521 doc_m i0 grid;
#X text 232 280 The value defines the scale factor. A pack object allows
you to vary the horizontal and vertical values idenpendently. In the
example above \, inlet 0 of [#pack] varies the image on a vertical
axis \, inlet 1 of [#pack] varies the image on a horizontal axis.;
#X obj 97 556 doc_m i1 grid;
#X text 232 556 same as arg 0;
#X text 232 521 Scales down picture by specified amount. (See scale
factor above);
#X text 232 618 grid((factor/y) (factor/x) channels);
#X text 232 354 factor is optional (default is 2).;
#X obj 97 618 doc_m o0 grid;
#X obj 14 411 doc_cc 1;
#X obj 97 411 doc_m c1 symbol;
#X text 232 411 "smoothly": does the downscale by averaging each block
of pixels.;
#X text 232 446 omitted: does the downscale by keeping only the top
right pixel in the block.;
#X obj 0 670 doc_f;
#X text 232 376 if it's a single value \, then that factor is to be
used for both rows and columns.;
#X connect 0 0 3 0;
#X connect 1 0 0 0;
#X connect 2 0 6 0;
#X connect 3 0 7 0;
#X connect 4 0 3 0;
#X connect 5 0 6 1;
#X connect 6 0 7 1;
#X connect 7 0 8 0;
#X connect 13 1 10 0;
#X connect 13 1 11 0;
#X connect 20 1 23 0;
#X connect 20 1 28 0;
#X connect 20 1 35 0;
#X connect 22 1 26 0;
#X connect 24 1 25 0;
#X connect 29 1 27 0;
#X connect 31 1 32 0;
#X connect 31 1 33 0;