From f18d063d9312c95e25294e0777bc135ee9a3fd8a Mon Sep 17 00:00:00 2001 From: Thomas O Fredericks Date: Sun, 25 Oct 2009 00:39:13 +0000 Subject: Adding mtl svn path=/trunk/abstractions/mtl/; revision=12667 --- buttonColor-help.pd | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 buttonColor-help.pd (limited to 'buttonColor-help.pd') diff --git a/buttonColor-help.pd b/buttonColor-help.pd new file mode 100644 index 0000000..5f78282 --- /dev/null +++ b/buttonColor-help.pd @@ -0,0 +1,30 @@ +#N canvas 78 109 637 527 10; +#X obj 46 156 hradio 15 1 0 3 \$0bs \$0br button 3 7 0 9 -1 -1 -261684 +0; +#X obj 47 59 hradio 15 1 0 3 \$0rs \$0rr empty 3 7 0 10 -1 -13184 -1 +0; +#X text 39 -21 description: colorize a custom button on presses.; +#X floatatom 143 183 5 0 0 0 - - -; +#X floatatom 145 129 5 0 0 0 - - -; +#X obj 150 56 buttonColor \$0rs \$0rr -1 -800000 -1 -1.67117e+07 -1 +-1 250; +#X floatatom 148 36 5 0 0 0 - - -; +#X floatatom 150 79 5 0 0 0 - - -; +#X text 52 228 Argument 1: GUI element's send symbol; +#X text 52 244 Argument 2: GUI element's receive symbol; +#X text 52 260 Argument 3: color of background when unpressed; +#X text 52 276 Argument 4: color of front when unpressed; +#X text 52 292 Argument 5: color of label when unpressed; +#X text 52 308 Argument 6: color of background when pressed; +#X text 52 324 Argument 7: color of front when pressed; +#X text 52 340 Argument 8: color of label when pressed; +#X text 52 356 Argument 9: release time; +#X text 186 107 For the color coding conversion \, see:; +#X obj 422 110 mtl/rgbToNum; +#X obj 144 158 buttonColor \$0bs \$0br -1 -1 -1.677e+07 -1 -1 -1 250 +; +#X text 44 -1 tags: ui; +#X connect 4 0 19 0; +#X connect 5 0 7 0; +#X connect 6 0 5 0; +#X connect 19 0 3 0; -- cgit v1.2.1