3 ms·
It's a quality meme but I'm having trouble figuring out the settings that make it work. It looks like RGBA8 would be blue: >>> struct.pack('f',math.nan)
by jjoonathan 3y ago
It's a quality meme but I'm having trouble figuring out the settings that make it work. It looks like RGBA8 would be blue:
>>> struct.pack('f',math.nan)
b'\x00\x00\xc0\x7f'
maybe that becomes green if you composite over white or something? Or maybe there is a common type of NaN that fills some of the unspecified bits? ("Just use the particular NaN that makes it green" is cheating unless you have an excuse)
- dekhn 3y agoIt was an arbitrary decision by the engineers who made the early GPUs, they just mapped NaN to an RGB It was a nice way to debug tensors: render them to the screen, the green sticks out.
- nealabq 3y agoThey mean big-endian NaN, taking only the first 3 bytes. No alpha channel. https://encycolorpedia.com/76b900 https://encycolorpedia.com/76b900 says Nvidia green #76b900.
- jjoonathan 3y agoCool, thanks!
- scns 3y agoEncycolorpedia looks like a great resource, thank you very much. A similar one would be Colorhexa. Not affiliated. https://colorhexa.com https://colorhexa.com [Edit] Could not find it under the name, but it shows how color blind users perceive it. And it loads much faster. https://www.colorhexa.com/76b900 https://www.colorhexa.com/76b900 [Edit] Encycolorpedia has a color blindness simulator too. Have to check on desktop.