Toinane / colorpicker

A mininal but complete colorpicker desktop app
https://colorpicker.fr
GNU General Public License v3.0
1.59k stars 119 forks source link

Support Normalized RGB #129

Open kleineluka opened 1 year ago

kleineluka commented 1 year ago

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.

Toinane commented 10 months ago

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.

kleineluka commented 9 months ago

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!