blob: 54adb77ac0a58a4936785a93c1eb4bebc400a5e3 (
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
|
#N canvas 674 0 632 523 10;
#X obj 11 75 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1;
#X obj 11 94 metro 100;
#X obj 89 171 #scale_to (133 133);
#X obj 89 133 #in;
#X obj 284 159 #pack;
#X obj 325 138 hsl 128 15 0 640 0 0 empty empty empty 0 -8 0 8 -260818
-1 -1 0 1;
#X obj 325 158 hsl 128 15 0 640 0 0 empty empty empty 0 -8 0 8 -260818
-1 -1 0 1;
#X obj 89 208 #out window \, title #scale_to;
#X obj 169 474 #downscale_by;
#X msg 89 73 open scissors.jpg \, bang;
#X obj 300 183 #print;
#X msg 284 75 2 # 500 500;
#X obj 412 97 #print;
#X msg 284 94 2 # 100 500;
#X msg 285 115 2 # 500 100;
#X text 460 133 height;
#X text 460 155 width;
#X text 232 442 Outputs the resulting scaled image.;
#X text 232 270 A (height width) pair of integers indicating the size
to scale to image to. This initial argument is required.;
#X text 232 345 The Grid passed at inlet 0 will be the image on which
the scale_to will be performed.;
#X text 284 58 2 grid size values y=500 x=500;
#X obj 103 474 #scale_by;
#X text 9 22 The [#scale_to] scales the image received to the x and
y values passed. Initial creation arguments are mandatory (0 0) otherwise.
;
#X obj 0 0 doc_h;
#X obj 3 315 doc_i 2;
#X obj 3 240 doc_c 1;
#X obj 3 474 doc_also;
#X obj 3 412 doc_o 1;
#X obj 14 442 doc_oo 0;
#X obj 14 345 doc_ii 0;
#X obj 14 380 doc_ii 1;
#X obj 14 270 doc_cc 0;
#X obj 97 270 doc_m c0 (int int);
#X obj 97 345 doc_m i0 grid;
#X text 232 380 same as arg 0;
#X obj 97 380 doc_m i1 (int int);
#X obj 97 442 doc_m o0 grid;
#X obj 0 494 doc_f;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 2 0 7 0;
#X connect 3 0 2 0;
#X connect 4 0 2 1;
#X connect 4 0 10 0;
#X connect 5 0 4 0;
#X connect 6 0 4 1;
#X connect 9 0 3 0;
#X connect 11 0 2 1;
#X connect 11 0 12 0;
#X connect 13 0 2 1;
#X connect 13 0 12 0;
#X connect 14 0 2 1;
#X connect 14 0 12 0;
#X connect 26 1 21 0;
#X connect 26 1 8 0;
#X connect 32 1 18 0;
#X connect 33 1 19 0;
#X connect 35 1 34 0;
#X connect 36 1 17 0;
|