Gimp-Forum.net
Display Saturation and Value as 0-255? - Printable Version

+- Gimp-Forum.net (http://www.gimp-forum.net)
+-- Forum: GIMP (http://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (http://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Display Saturation and Value as 0-255? (/Thread-Display-Saturation-and-Value-as-0-255)



Display Saturation and Value as 0-255? - ViciousVinnyD - 03-16-2017

By default saturation and value are displayed as 0-100 in the color picker. Is it possible to change this to 0-255?


RE: Display Saturation and Value as 0-255? - Ofnuts - 03-16-2017

Not as far as I know. And the trend is going to be 0-100 for everything (or 0.000 to 1.000). "255" is just the current internal representation of R,G, B and A channels, but S and V aren't really stored in byte.


RE: Display Saturation and Value as 0-255? - ViciousVinnyD - 03-17-2017

(03-16-2017, 08:47 PM)Ofnuts Wrote: Not as far as I know. And the trend is going to be 0-100 for everything (or 0.000 to 1.000). "255" is just the current internal representation of R,G, B and A channels, but S and V aren't really stored in byte.

RGB are going to be stored as values of 0-100? That doesn't make sense. Colours are stored as 8 bit components, allowing for 256 shades of each primary colour and 16777216 combinations of all 3 colours. 100 simply doesn't fit in with this system, as it is an arbitrary number and has no mathematical significance in computing.

(03-16-2017, 08:47 PM)Ofnuts Wrote: S and V aren't really stored in byte.

I know, as explained above. I was looking for a ui tweak, not a new method of saving data. The reason I ask is because I'm used to using 0-255 for selecting S and V, and would prefer an option for this.


RE: Display Saturation and Value as 0-255? - Ofnuts - 03-17-2017

(03-17-2017, 01:57 AM)ViciousVinnyD Wrote:
(03-16-2017, 08:47 PM)Ofnuts Wrote: Not as far as I know. And the trend is going to be 0-100 for everything (or 0.000 to 1.000). "255" is just the current internal representation of R,G, B and A channels, but S and V aren't really stored in byte.

RGB are going to be stored as values of 0-100? That doesn't make sense. Colours are stored as 8 bit components, allowing for 256 shades of each primary colour and 16777216 combinations of all 3 colours. 100 simply doesn't fit in with this system, as it is an arbitrary number and has no mathematical significance in computing.
When these are percentage of the maximum value that make sense (exactly as much as sense as S and V as it is done now). In the next version of Gimp, color can be store in bytes (8-bit), short int (16-bit), long int (32-bit) and floating point. The 0-255 range becomes completely arbitrary.


RE: Display Saturation and Value as 0-255? - Kevin - 03-17-2017

(03-17-2017, 01:57 AM)ViciousVinnyD Wrote: RGB are going to be stored as values of 0-100? That doesn't make sense. Colours are stored as 8 bit components, allowing for 256 shades of each primary colour and 16777216 combinations of all 3 colours. 100 simply doesn't fit in with this system, as it is an arbitrary number and has no mathematical significance in computing.

But you are thinking in terms of 8 bit per channel, whereas GIMP is moving to supporting higher bit depths, where using a fixed integer is not useful, so normalising to a float 0 -> 100 (or 0.0 -> 1.0 float values) is universally useful.

I could even imagine a situation where it might be desirable to be able to choose a colour out of the gamut of the current colorspace, so setting a negative value might be needed.


RE: Display Saturation and Value as 0-255? - rich2005 - 03-17-2017

Interesting.

The development version Gimp 2.9.5 at-the-moment has both percentage and 0..255 options in the colour-picker info window but only for RGB. HSV remains a percentage.

The only application I know that uses 0..255 for the colour picker is Inkscape and that is for HSL