<div dir="auto">i think what roman is trying to say is that the color was indeed displayed as white back in the days (in 6bit) and the two trailing zeros are there because the value was shifted two positions to the left (<< 2 binary operation) to align with 8bit variables more conveniently... (or maybe i misunderstood completely)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 29 Nov 2022, 02:56 Alexandre Torres Porres, <<a href="mailto:porres@gmail.com">porres@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Em seg., 28 de nov. de 2022 às 05:05, Roman Haefeli <<a href="mailto:reduzent@gmail.com" target="_blank" rel="noreferrer">reduzent@gmail.com</a>> escreveu:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 2022-11-28 at 02:58 -0300, Alexandre Torres Porres wrote:<br>
> For the record, I just realized default colors of iemguis is not  "pure white" (...) <br>
> it is "FCFCFC" (...) This is not a regression, it's the same in pd 0.48,<br>
> <br>
> I don't know why or where that happens in the code<br>
<br>
I haven't checked the code, but the old encoding allowed for only 6<br>
bits per channel. Assuming the two least significant bits are set to 0,<br>
FC is the highest value possible in that scheme<br>
<br>
0xFC = 0b1111 1100<br></blockquote><div><br></div><div>It's much simpler than that. Default color is explicitly set and defined as "<span style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:12px;white-space:pre-wrap">0xFCFCFC" in g_all_guis.c, more specifically </span>here:</div><div><br></div><div><a href="https://github.com/pure-data/pure-data/blob/06ecc41f42059bfe02081e4738ed21f6bcd0eac9/src/g_all_guis.c#L1030" target="_blank" rel="noreferrer">https://github.com/pure-data/pure-data/blob/06ecc41f42059bfe02081e4738ed21f6bcd0eac9/src/g_all_guis.c#L1030</a><br></div><div><br></div><div>default "front" and "label" colors are also set there as black.</div><div><br></div><div>[cnv] has different default colors specified in its code (0xE0E0E0 for background and 0x404040 for label);</div><div><br></div></div></div>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank" rel="noreferrer">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>