aboutsummaryrefslogtreecommitdiff
path: root/examples/bitmap-help.pd
blob: e12deabc8c00208c59df63eb6fec233d9f20716a (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
#N canvas 625 330 742 518 10;
#X obj 63 244 bitmap -cellsize 15 -uwidth 8 -uheight 8;
#bitmap setdata 1 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 1 0 0 0
0 1 0 1 1 0 0 0 1 0 1 0 1 0 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 0 1 0 1
0 1 1 0 1 0 1 0 1 0;
#X obj 87 410 print out;
#X msg 39 117 getrow \$1;
#X obj 42 245 vradio 15 1 0 8 empty empty empty 0 -8 0 10 -228856 -162280
-1 0;
#X obj 42 410 s \$0r;
#X obj 39 89 r \$0r;
#X text 36 19 [bitmap] - a two dimensional array of bits (toggles)
;
#X text 38 49 creation arguments -cellsize <#> -uwidth <#> -uheight <#>;
#X msg 111 117 getcol \$1;
#X obj 111 89 r \$0c;
#X obj 63 213 r \$0b;
#X obj 39 157 s \$0b;
#X obj 63 372 hradio 15 1 0 8 empty empty empty 0 -8 0 10 -228856 -162280
-1 0;
#X obj 157 410 s \$0c;
#X obj 227 157 s \$0b;
#X msg 227 117 getcell 0 1;
#X msg 317 117 getcell 1 1;
#X text 226 88 getcell <row> <col>;
#X obj 247 243 bitmap -cellsize 4 -uwidth 16 -uheight 16;
#bitmap setdata 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
1 0 1 1 1 1 0 1 1 1 1 1 0 0 1 0 1 0 1 0 0 1 0 1 0 0 0 1 0 0 1 1 1 0
1 0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 1 1 1 1 0 1 0 0 0 1 0 0 1 1 1 1 0 0
0 0 0 1 1 1 1 1 0 0 1 0 0 1 0 1 1 1 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0
1 0 1 1 1 1 0 0 1 1 1 1 0 1 0 0 1 0 1 0 0 1 0 0 0 0 0 0 0 1 1 1 1 0
1 0 0 1 0 0 1 1 1 1 1 0 0 0 0 0 1 1 1 1 0 0 1 0 0 0 1 0 1 1 1 1 0 0
0 0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 1 1 0 0 1 0 0 0 1 0 1 0 0 1 0 1 0 1
0 0 1 1 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0;
#X msg 447 200 setcell \$1 \$2 \$3;
#N canvas 4 117 450 300 randomdata 0;
#X obj 220 136 random 2;
#X obj 62 89 t b b b;
#X obj 62 35 inlet;
#X obj 62 187 pack f f f;
#X obj 62 222 outlet;
#X obj 62 62 metro 10;
#X obj 62 136 random 4;
#X obj 141 136 random 4;
#X connect 0 0 3 2;
#X connect 1 0 6 0;
#X connect 1 1 7 0;
#X connect 1 2 0 0;
#X connect 2 0 5 0;
#X connect 3 0 4 0;
#X connect 5 0 1 0;
#X connect 6 0 3 0;
#X connect 7 0 3 1;
#X restore 447 175 pd randomdata;
#X obj 447 151 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 447 331 bitmap -cellsize 16 -uwidth 4 -uheight 4;
#bitmap setdata 1 0 0 0 1 0 0 1 1 0 1 1 1 1 1 0;
#X msg 465 231 setcol 1 0 0 0 0 \, setcol 2 0 0 0 0;
#X msg 481 292 setrow \$1 \$2 \$2 \$3 \$3;
#X msg 481 265 0 1 0 \, 1 1 0 \, 2 0 1 \, 3 0 1;
#X connect 0 0 1 0;
#X connect 2 0 11 0;
#X connect 3 0 4 0;
#X connect 5 0 2 0;
#X connect 8 0 11 0;
#X connect 9 0 8 0;
#X connect 10 0 0 0;
#X connect 12 0 13 0;
#X connect 15 0 14 0;
#X connect 16 0 14 0;
#X connect 19 0 22 0;
#X connect 20 0 19 0;
#X connect 21 0 20 0;
#X connect 23 0 22 0;
#X connect 24 0 22 0;
#X connect 25 0 24 0;