On Sat, 2016-04-30 at 12:08 -0700, Miller Puckette wrote: > OK.. I added a 0.46 compatibility mode to get the old, strange behavior :)
I don't see anything regarding this in the logs. Did you push? The most recent commit I see is adcdcede. Now I feel somewhat guilty for another compatibility mode ;-) Probably more important than supporting the 'strange' behavior would be to reflect the current behavior in the documentation. See attached my_canvas-help.pd Roman > On Sat, Apr 30, 2016 at 05:42:55PM +0200, Roman Haefeli wrote: > > On Fri, 2016-04-29 at 15:49 -0700, Miller Puckette wrote: > > > It looks like the new color handling has made teh "color" message work > > > more coherently. In the past, if "color" had two arguments they were > > > interpreted as background, foreground, and label color, but if only > > > two were supplied theyt were the foreground and label colors (without > > > setting background color). > > > > Actually, a color message with two arguments sets background and label, > > leaving foreground color unchanged (in Pd <= 0.46). > > > > > I think the old behavior is horribly confusing. > > > > Until now, I wasn't aware that all iemguis behave the same regarding > > colors. The new behavior would have worked for old versions of Pd, but > > it never occurred to me, since the documentation for [cnv] clearly > > suggests using only two arguments (background, label), while all other > > iemguis require three arguments. Thus, I used only two arguments > > whenever setting the label color for [cnv]s dynamically. The change of > > behavior breaks quite a few patches of mine. This doesn't mean I'm > > opposed to introducing sanity in that matter (it's quite easy to fix), > > but I'm wondering how many other patches with non-trivial GUI designs > > would be affected. > > > > > I'm not sure whether to consider it a bug or a 'feature' - and whether > > > back compatibility is more important than making the color-settings sane. > > > > I'm not even sure what is more sane. The new behavior forces the use of > > a redundant middle argument when setting the label of a [cnv]. > > > > Roman > > > > > > > > > On Mon, Apr 25, 2016 at 10:47:38PM +0200, Roman Haefeli wrote: > > > > I'm glad to see the release that includes deken is out now. > > > > > > > > One minor thing still apparent in the test2 release: The second argument > > > > of the 'color' message to a [cnv] object does not change the text color > > > > anymore in Pd 0.47. Text color can be changed by providing a _third_ > > > > argument, though. > > > > > > > > See attached patch. > > > > > > > > Cheers and thanks for all the work gone into that release, > > > > Roman > > > > > > > > > > > _______________________________________________ > > Pd-list@lists.iem.at mailing list > > UNSUBSCRIBE and account-management -> > > https://lists.puredata.info/listinfo/pd-list >
#N canvas 0 44 500 292 10; #X obj 1 1 cnv 15 300 60 foo10_snd foo10_rcv my_canvas=cnv 63 37 0 17 -257472 -355 0; #X text 4 232 (c) mu...@iem.kug.ac.at; #X text 46 245 IEM KUG; #N canvas 219 100 699 530 edit 0; #X obj 39 226 f; #X msg 17 205 bang; #X floatatom 55 204 3 63 88 0 - - -, f 3; #X floatatom 90 226 3 0 37 0 - - -, f 3; #X obj 39 249 pack 0 0; #X text 117 226 y-label; #X text 83 204 x-label; #X obj 297 281 f; #X msg 275 260 bang; #X floatatom 313 259 3 -10 10 0 - - -, f 3; #X floatatom 348 281 3 -10 10 0 - - -, f 3; #X obj 297 304 pack 0 0; #X obj 309 396 f; #X msg 287 375 bang; #X floatatom 325 374 3 20 60 0 - - -, f 3; #X floatatom 360 396 3 150 200 0 - - -, f 3; #X obj 309 419 pack 0 0; #X text 341 259 x-delta; #X text 375 281 y-delta; #X text 353 374 x-position; #X text 387 396 y-position; #X obj 59 341 f; #X msg 37 320 bang; #X floatatom 75 319 3 0 2 0 - - -, f 3; #X floatatom 110 341 3 4 36 0 - - -, f 3; #X obj 59 364 pack 0 0; #X text 103 319 font; #X text 139 341 height; #X floatatom 275 183 3 2 20 0 - - -, f 3; #X msg 39 274 \; foo10_rcv label_pos \$1 \$2; #X msg 59 390 \; foo10_rcv label_font \$1 \$2; #X msg 36 430 \; foo10_rcv label blabla; #X msg 36 466 \; foo10_rcv label my_canvas; #X msg 309 444 \; foo10_rcv pos \$1 \$2; #X msg 297 329 \; foo10_rcv delta \$1 \$2; #X obj 505 234 f; #X msg 483 213 bang; #X floatatom 521 212 5 100 1000 0 - - -, f 5; #X floatatom 556 234 4 50 500 0 - - -, f 4; #X obj 505 257 pack 0 0; #X text 566 212 width; #X text 594 236 height; #X msg 505 282 \; foo10_rcv vis_size \$1 \$2; #X msg 275 211 \; foo10_rcv size \$1; #X text 305 183 selectable size; #X msg 483 156 \; foo10a_rcv receive foo10_rcv; #X msg 483 119 \; foo10_rcv receive foo10a_rcv; #X msg 482 29 \; foo10_rcv send foo10a_snd; #X msg 482 67 \; foo10_rcv send foo10_snd; #X msg 509 372 \; foo10_rcv get_pos; #X obj 510 407 r foo10_snd; #X obj 510 428 unpack 0 0; #X floatatom 510 453 4 0 0 0 - - -, f 4; #X floatatom 575 452 4 0 0 0 - - -, f 4; #X text 490 452 x=; #X text 557 452 y=; #X obj 52 79 f; #X msg 29 31 bang; #X floatatom 68 29 3 0 29 0 - - -, f 3; #X floatatom 103 47 3 0 29 0 - - -, f 3; #X text 96 29 background; #X text 131 48 label-color; #X msg 290 25 back; #X msg 290 49 label; #X msg 252 25 bang; #N canvas 15 207 606 448 RGB_____________ 0; #X obj 97 56 inlet; #X obj 262 53 inlet; #X obj 339 55 inlet; #X obj 405 56 inlet; #X obj 97 270 bang; #X msg 77 295 0; #X msg 104 295 1; #X obj 146 268 bang; #X msg 132 295 0; #X msg 160 295 1; #X obj 265 313 spigot; #X obj 312 313 spigot; #X obj 249 385 outlet; #X text 93 33 select; #X text 267 28 red; #X text 337 30 green; #X text 409 30 blue; #X obj 405 102 t b f; #X obj 339 160 +; #X obj 339 185 t b f; #X obj 339 216 +; #X obj 296 385 outlet; #X obj 28 180 loadbang; #X obj 296 361 f; #X obj 249 361 f; #X obj 262 79 * -65536; #X obj 339 80 * -256; #X obj 405 80 * -1; #X obj 339 247 - 1; #X obj 97 135 route back label bang; #X obj 235 168 t b b b; #X connect 0 0 29 0; #X connect 1 0 25 0; #X connect 2 0 26 0; #X connect 3 0 27 0; #X connect 4 0 5 0; #X connect 4 0 6 0; #X connect 5 0 11 1; #X connect 6 0 10 1; #X connect 7 0 8 0; #X connect 7 0 9 0; #X connect 8 0 10 1; #X connect 9 0 11 1; #X connect 10 0 24 1; #X connect 11 0 23 1; #X connect 17 0 18 0; #X connect 17 1 18 1; #X connect 18 0 19 0; #X connect 19 0 20 0; #X connect 19 1 20 1; #X connect 20 0 28 0; #X connect 22 0 6 0; #X connect 23 0 21 0; #X connect 24 0 12 0; #X connect 25 0 20 0; #X connect 26 0 18 0; #X connect 27 0 17 0; #X connect 28 0 11 0; #X connect 28 0 10 0; #X connect 29 0 4 0; #X connect 29 1 7 0; #X connect 29 2 30 0; #X connect 30 0 24 0; #X connect 30 1 23 0; #X connect 30 2 28 0; #X restore 290 86 pd RGB_____________; #X floatatom 332 55 3 0 255 0 - - -, f 3; #X floatatom 375 55 3 0 255 0 - - -, f 3; #X floatatom 418 56 3 0 255 0 - - -, f 3; #X text 39 3 preset-colors; #X text 301 0 RGB-colors; #X text 332 37 red; #X text 368 36 green; #X text 416 36 blue; #X obj 52 104 pack 0 0; #X msg 52 137 \; foo10_rcv color \$1 0 \$2; #X connect 0 0 4 0; #X connect 1 0 0 0; #X connect 2 0 0 1; #X connect 3 0 4 1; #X connect 4 0 29 0; #X connect 7 0 11 0; #X connect 8 0 7 0; #X connect 9 0 7 1; #X connect 10 0 11 1; #X connect 11 0 34 0; #X connect 12 0 16 0; #X connect 13 0 12 0; #X connect 14 0 12 1; #X connect 15 0 16 1; #X connect 16 0 33 0; #X connect 21 0 25 0; #X connect 22 0 21 0; #X connect 23 0 21 1; #X connect 24 0 25 1; #X connect 25 0 30 0; #X connect 28 0 43 0; #X connect 35 0 39 0; #X connect 36 0 35 0; #X connect 37 0 35 1; #X connect 38 0 39 1; #X connect 39 0 42 0; #X connect 50 0 51 0; #X connect 51 0 52 0; #X connect 51 1 53 0; #X connect 56 0 74 0; #X connect 57 0 56 0; #X connect 58 0 56 1; #X connect 59 0 74 1; #X connect 62 0 65 0; #X connect 63 0 65 0; #X connect 64 0 65 0; #X connect 65 0 74 0; #X connect 65 1 74 1; #X connect 66 0 65 1; #X connect 67 0 65 2; #X connect 68 0 65 3; #X connect 74 0 75 0; #X restore 315 20 pd edit; #X floatatom 110 193 4 0 0 0 - - -, f 4; #X floatatom 147 193 4 0 0 0 - - -, f 4; #X text 121 209 x; #X text 158 209 y; #X obj 7 161 metro 100; #X obj 33 141 tgl 15 1 empty empty empty 20 8 0 10 -262144 -1 -1 1 1; #X obj 110 145 r from_K1; #X floatatom 188 194 4 0 0 0 - - -, f 4; #X floatatom 225 194 4 0 0 0 - - -, f 4; #X text 198 210 x; #X text 236 210 y; #X obj 188 146 r from_K2; #X msg 7 185 \; to_K get_pos; #N canvas 0 296 395 395 room 0; #X obj 1 1 cnv 1 400 400 empty empty type...ctrl+e 150 140 2 17 -33289 -24198 0; #X obj 15 16 cnv 1 1 360 empty empty move_K1_and_K2 115 160 2 17 -166441 -24198 0; #X obj 374 15 cnv 1 1 360 empty empty empty 20 12 2 20 -99865 -66577 0; #X obj 15 15 cnv 1 360 1 empty empty empty 20 12 2 20 -166441 -66577 0; #X obj 17 375 cnv 1 358 1 empty empty empty 20 12 2 20 -99865 -66577 0; #X obj 23 22 cnv 25 25 25 from_K1 to_K K1 1 13 2 14 -261681 -123526 0; #X obj 342 342 cnv 25 25 25 from_K2 to_K K2 1 13 2 14 -225280 -1109 0; #X restore 307 147 pd room; #X obj 110 169 unpack; #X obj 188 170 unpack; #X text 51 92 to modify geometry \, colors \, etc.; #X obj 2 115 cnv 1 470 1 empty empty empty 20 12 2 20 -261681 -66577 0; #X text 40 78 of the light-blue; #X text 166 78 my_canvas-object \,; #X text 5 64 click the properties-dialog on the top-left corner; #X obj 361 195 r foo10_rcv; #X obj 403 215 s ggg; #X text 21 257 graz \, austria 2002; #X obj 187 236 x_all_guis aaa bbb ccc ddd eee fff ggg hhh iii; #X text 313 46 For cnv's creation arguments:; #N canvas 881 440 467 369 canvas-creation-arguments 0; #X msg 7 12 canvas: cnv selectableSize xSize ySize sendName recieveName Label labelXOff labelYOff Font# fontSize bgColor lblColor 0; #X text 9 169 For example \, a canvas called thusly:; #X obj 9 248 cnv 15 200 100 myCanvas myCanvasR Canvas_Demo 20 12 2 14 -62784 -195568 0; #X text 9 226 will result in this:; #X text 8 59 Canvas can be called with 13 creation arguments. These are not "optional" - all parameters must be filled or the canvas will not instantiate correctly.; #X text 10 114 The function of the final "0" is unknown to me (it is found in the textual entry for a canvas object in a .pd file) but can be safely left off without ill effects.; #X msg 9 191 cnv 15 200 100 myCanvas myCanvasR Canvas_Demo 20 12 2 14 18 20; #X restore 314 63 pd canvas-creation-arguments; #X text 172 257 updated for Pd version 0.47; #X connect 8 0 16 0; #X connect 9 0 8 0; #X connect 10 0 18 0; #X connect 15 0 19 0; #X connect 18 0 4 0; #X connect 18 1 5 0; #X connect 19 0 11 0; #X connect 19 1 12 0; #X connect 25 0 26 0;
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list