Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Display Saturation and Value as 0-255?
#1
By default saturation and value are displayed as 0-100 in the color picker. Is it possible to change this to 0-255?
Reply
#2
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.
Reply
#3
(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.
Reply
#4
(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.
Reply
#5
(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.
Reply
#6
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
Reply
#7
(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.

Then is there a way to display 0-100 in floating precision?  Right now, the color picker tool, actually all tools, show me 0-100 rounded to integer.  I really need the color picker tool to show me more precision.  I can't see value change.
Thank you!
Reply
#8
(04-24-2018, 06:48 PM)Adrienne 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.

Then is there a way to display 0-100 in floating precision?  Right now, the color picker tool, actually all tools, show me 0-100 rounded to integer.  I really need the color picker tool to show me more precision.  I can't see value change.
Thank you!

Not in Gimp 2.8. That would be meaningless anyway. Since there are only 255 values, most displayed values would be impossible. What good is it to let you enter 25.6 when it will be converted under the hood into 25.5?
Reply


Forum Jump: