-
Notifications
You must be signed in to change notification settings - Fork 2
/
of.color-help.pd
88 lines (88 loc) · 2.64 KB
/
of.color-help.pd
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
#N canvas 433 82 677 554 12;
#X declare -lib ofelia;
#X obj 9 10 cnv 15 600 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X floatatom 55 276 5 0 0 2 Red - -;
#X floatatom 100 276 5 0 0 2 Green - -;
#X floatatom 145 276 5 0 0 2 Blue - -;
#X floatatom 190 276 5 0 0 2 Alpha - -;
#X text 29 19 Color R \, G \, B \, A or HSB;
#X text 29 43 Arguments: red \, green \, blue \, alpha;
#X msg 410 154 155 100 0 255;
#X obj 346 308 of.color, f 21;
#X text 479 184 Single color (red);
#X text 463 238 hexadecimal;
#X msg 575 289 get;
#X floatatom 490 380 5 0 0 2 Red - -;
#X floatatom 511 415 5 0 0 2 Green - -;
#X floatatom 533 450 5 0 0 2 Blue - -;
#X floatatom 554 486 5 0 0 2 Alpha - -;
#X floatatom 619 452 5 0 0 2 Brightness - -;
#X floatatom 597 415 5 0 0 2 Saturation - -;
#X floatatom 576 380 5 0 0 2 Hue - -;
#X floatatom 641 485 8 0 0 2 Hex - -;
#X text 607 286 information from right outlet, f 14;
#X obj 462 45 declare -lib ofelia;
#X obj 490 342 unpack 0 0 0 0 0 0 0 0;
#X floatatom 175 167 5 0 0 2 Brightness - -;
#X floatatom 74 167 5 0 0 2 Saturation - -;
#X floatatom 20 166 5 0 0 2 Hue - -;
#X text 576 213 hue \, saturation \, brightness \, alpha, f 16;
#X floatatom 274 167 5 0 0 2 Alpha - -;
#X msg 432 213 hsb 127 100 255 100;
#X obj 346 432 of.rectangle 100 100;
#X obj 11 411 of.rectangle 400 400;
#X msg 463 280 hex 0075EB;
#X msg 463 254 hex #FFA500;
#X text 274 43 (0...255 / channel);
#X text 516 154 list of rgb / rgba;
#X obj 11 308 of.color 255 0 0 200, f 26;
#X msg 355 155 invert;
#X msg 430 184 red 20;
#X msg 274 195 alpha \$1;
#X msg 20 194 hue \$1;
#X msg 74 195 saturation \$1;
#X msg 175 195 brightness \$1;
#X text 28 338 -> all sub-tree shapes will get the color, f 25;
#X obj 346 113 of.draw 2;
#X text 344 84 Small square;
#X obj 11 119 of.draw 1;
#X text 9 96 Big square;
#X text 85 119 draw order 1st (back);
#X text 420 116 draw order 2nd (on top);
#X obj 518 19 of.window 1;
#X obj 497 21 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X connect 1 0 35 1;
#X connect 2 0 35 2;
#X connect 3 0 35 3;
#X connect 4 0 35 4;
#X connect 7 0 8 0;
#X connect 8 0 29 0;
#X connect 8 1 22 0;
#X connect 11 0 8 0;
#X connect 22 0 12 0;
#X connect 22 1 13 0;
#X connect 22 2 14 0;
#X connect 22 3 15 0;
#X connect 22 4 18 0;
#X connect 22 5 17 0;
#X connect 22 6 16 0;
#X connect 22 7 19 0;
#X connect 23 0 41 0;
#X connect 24 0 40 0;
#X connect 25 0 39 0;
#X connect 27 0 38 0;
#X connect 28 0 8 0;
#X connect 31 0 8 0;
#X connect 32 0 8 0;
#X connect 35 0 30 0;
#X connect 36 0 8 0;
#X connect 37 0 8 0;
#X connect 38 0 35 0;
#X connect 39 0 35 0;
#X connect 40 0 35 0;
#X connect 41 0 35 0;
#X connect 43 0 8 0;
#X connect 45 0 35 0;
#X connect 50 0 49 0;