Color picker RGB values
Hi all.
I'm trying to write a script that manipulates colors when using gamma 2.2.
Basically I want to have a color picker ("old") so the user can choose a colour and one next to it ("new") that is the result of the following equation.
new=255*((old/255)^2.2)
This will make the RGB values correct when using gamma.
Any help on this would be much appreciated.
Cheers.
Comments
.
It isn't very precise, unfortunately. Dunno how to make it work better.
Practically perfect !
Hey Sergey,
perfect mate, this is practically perfect again!
I just tested on RGB value of 255,229,191 and your beautiful tool gives 255,201,134 which is just 1 step off in Blue channel (255,201,135 is perfectly accurate) and it should be impossible to tell the difference. Thank you so much, again and again for your valuable help !
I would like to ask you something, can you please give me your e-mail?
.
Sent you a PM, should be in your mailbox
Got it
Got it mate, will write to you soon. Thank you!
Hi mate, this one is very old
Hi mate,
this one is very old but right now i need exactly the same thing. Have you ever found solution for this in this form you have asked for, or maybe as some color converter tool that works with colors exclusively (without using textures and gamma settings in them) ?
Thank you