Forum

#1 2016-09-20 15:38:03

subdproxy
Member

Color Picker

Is there a way to change the Color Picker from 0-1 RGB values to 0-255 RGB values?

Glen

Offline

 

#2 2016-09-20 16:00:24

hulud
Guerilla dev, the guy to hug

Re: Color Picker

Hi,

No, right now there is no way to do that.

On linux you can color pick into any applications using the "Pick" button of the color box.

On Windows, you can pick only into the Guerilla windows. You can still drag and drop an image in the RenderView and pick with the color picker into it.


Cyril 'Hulud' Corvazier
Guerilla developer
http://www.mercs-eng.com

Offline

 

#3 2016-09-20 18:47:34

subdproxy
Member

Re: Color Picker

hulud :

Hi,

No, right now there is no way to do that.

On linux you can color pick into any applications using the "Pick" button of the color box.

On Windows, you can pick only into the Guerilla windows. You can still drag and drop an image in the RenderView and pick with the color picker into it.

Thanks for the quick reply. I brought image in and selected the colors. That worked well!

I tried dividing the number into 255 a = x/255 and that also had somewhat ok results, just not as easy as bringing the image into Guerilla Render.

Glen

Offline

 

#4 2016-09-21 12:30:07

hulud
Guerilla dev, the guy to hug

Re: Color Picker

Convert a 8 bits color (0-255) to the Guerilla color space (0~1) is a bit more complex. You have first to divide by 255, but then you have to convert your color from the sRGB color space to the rendering color space. Here is the formula :

https://wikimedia.org/api/rest_v1/media/math/render/svg/1ad77f3e82621bfea10262647a76862efa46ae1d

with a = 0.055, and Csrgb your color divided by 255.

Note that this is more complex if your are using the ACES color spaces.


Cyril 'Hulud' Corvazier
Guerilla developer
http://www.mercs-eng.com

Offline

 

#5 2016-09-21 12:43:33

hulud
Guerilla dev, the guy to hug

Re: Color Picker

You can try that tool : http://davengrace.com/cgi-bin/cspace.pl

The good value is the third line.


Cyril 'Hulud' Corvazier
Guerilla developer
http://www.mercs-eng.com

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB