chromeEyeDropper icon indicating copy to clipboard operation
chromeEyeDropper copied to clipboard

Add additional color box for normalized rgb values

Open wbrege opened this issue 4 years ago • 2 comments

Some frameworks only accept RGB values in normalized form, this change would help when working with them.

wbrege avatar Dec 13 '21 01:12 wbrege

Thanks for PR and the idea. I never heard about normalized RGB before :) but after first article I found now (https://aishack.in/tutorials/normalized-rgb/) it looks like divisor should be sum of R+G+B instead of 255? Also it would be probably better to get invidiual values of r, g and b from color object instead of splitting the html value.

Anyway I would like to add option to enable/disable this and also show it in preview box.

kepi avatar Dec 13 '21 21:12 kepi

Thank you for taking a look at my PR! My motivation for this change is that I'm working currently with a version of OpenGL that only accepts R, G, and B values that are individually normalized, as opposed to having the entire range of colours normalized as described in that article, though I'd be happy to throw that in as another option since I'm working on this anyway, if you'd like.

Would you mind pointing me to the documentation for the color object? I'm not sure what library you're using

wbrege avatar Dec 16 '21 07:12 wbrege