colorpicker icon indicating copy to clipboard operation
colorpicker copied to clipboard

Support Normalized RGB

Open kleineluka opened this issue 2 years ago • 2 comments

Optionally support natively displaying normalized RGB colorspace, which can be calculated by dividing the standard RGB values by 255 respectively. This is particularly useful for game development, with things such as Unity and Shaders.

kleineluka avatar Jan 03 '23 00:01 kleineluka

Hey @lukasong thank you for the idea and sorry for my late response, can you provide some examples of this feature? I don't really know what is it and I don't want to misunderstand what you want.

Toinane avatar Oct 27 '23 10:10 Toinane

I should have clarified in the original suggestion that you could find more looking at sRGB examples, such as on Wikipedia or Tom's Hardware. These values are specifically helpful for GPU development, where you can see examples with Shadertoy, Unity Game Development, or in ThreeJS. It is essentially the same 255 value range that RGB provides, but normalized into a 0-1 range. This makes the calculation for it very easy (just divide), but having it automatically do this would help a lot.

~~Sorry I accidentally closed/reopened!~~

kleineluka avatar Nov 03 '23 04:11 kleineluka