Christian-Me / node-red-contrib-chroma

A Node-RED node for color conversions mostly based on chroma.js with additional formats like RGBW and CIE-xyz
Apache License 2.0
2 stars 2 forks source link

CIExy gamma correction to the RGB values #1

Open steff75 opened 3 years ago

steff75 commented 3 years ago

Hello, I had asked about this feature in the forum. Here is the link to my post: https://discourse.nodered.org/t/announce-node-red-contrib-chroma/48874/2?u=steff Thank you!

TomW1605 commented 1 year ago

hi, sorry to bother you but i was wondering if you had any plans to do this? if not then i m ight take a stab and do a pull request.

it is fairly simple to convert xyY to XYZ and in this case Y is the brightness so if you assume Y=1 (full brightness) then its an easy conversion. i think assuming Y=1 is a resanable assumption given most automation stuff has a dedicated brightness channel and dose not rely on the colour value to apply dimming as well.