cmahnke / hdr-canvas

MIT License
2 stars 0 forks source link

Ability to detect WCG and HDR separately #23

Open mdrejhon opened 1 week ago

mdrejhon commented 1 week ago

Safari and FireFox supports WCG canvas (display-p3) but not HDR.

Here's a brand new WCG / HDR tester that I just created.

https://beta.testufo.com/hdr

SDR: Both squares solid WCG: Leftmost square has text HDR: Rightmost square has text

It's possible to have WCG-only (display-p3) or HDR-only (e.g. RGB hex that's been brightened with HDR luminances) but HDR usually includes WCG.

image

(I use my own detection code, I didn't know about your code, but I wanted to contribute my discovery of WCG and HDR features in different browsers).

cmahnke commented 1 week ago

Thank's for the idea - currently the focus is on HDR but I guess that WCG isn't that far away. Do you mind to share the code you used? My focus is on programatic detection, not visual.

mdrejhon commented 1 week ago

Thank's for the idea - currently the focus is on HDR but I guess that WCG isn't that far away. Do you mind to share the code you used? My focus is on programatic detection, not visual.

Sorry about the fancy visual red herring. You notice that I already use programmatic detection to display the indicator at bottom right. (WCG and HDR)