Why does S and V in Rhino HSV go up to 255?

Someone care to explain this please? Meaning, why, and how the use of it differ from standard HSV where S and V go from 0.0 to 1.0

As a side note, Grasshopper HSV goes up to 1.0. Seems a little incoherent to me.

1 Like

incoherent, no, just different standard.

if you consider 0 - 0% and 255 = 100%
then 0.0 = 0% and 1.0 = 100%

RGB24 and RGB32 This indirect scheme restricts the number of available colors in an image CLUT—typically 256-cubed (8 bits in three color channels with values of 0–255)—although each color in the RGB24 CLUT table has only 8 bits representing 256 codes for each of the R, G, and B primaries combinatorial math theory says this means that any given color can be one of 16,777,216 possible colors. However, the advantage is that an indexed-color image file can be significantly smaller than it would be with only 8 bits per pixel for each primary. Modern storage, however, is far less costly, greatly reducing the need to minimize image file size. By using an appropriate combination of red, green, and blue intensities, many colors can be displayed. Current typical display adapters use up to 24-bits of information for each pixel: 8-bit per component multiplied by three components (see the Digital representations section below (24bits = 2563, each primary value of 8 bits with values of 0–255). With this system, 16,777,216 (2563 or 224) discrete combinations of R, G, and B values are allowed, providing millions of different (though not necessarily distinguishable) hue, saturation and lightness shades. Increased shading has been implemented in various ways, some formats such as .png and .tga files among others using a fourth greyscale color channel as a masking layer, often called RGB32.

…that said, not sure why they went for that model :slightly_smiling_face:

You’ll find that in Rhino all colors use 8-bit-per-channel encoding, just check the color picker.

Honestly, why do you even care, the human eye cannot differentiate 16 million different colors. Even if it does, the brain will refuse to process that information. Pick some colors that you like and write down their hex or 0-255 or float values.

I use this site: https://www.htmlcsscolor.com/hex/3D85C6

Okay! Thank you all!
We had some issues with a client asking for 180, 100, 100.

And naturally we noticed it can be refer to 255 or actually 100 within Rhino.

As a side note, I was talking about the HSV component where it goes from 0 to 1. Guess I will have some remapping work to do.

if the value is RGB just type it as text.
if it’s HSV check its RGB in Rhino first.

1 Like