In my computer graphics lecture, I discuss various color models, including the HSV color space. Since students often have difficulty converting from HSV to RGB, I created a tool that illustrates this process more clearly. If you would like to try it out, you can access it at https://lea.inform.hs-hannover.de/hsv2rgb.

#colormodel #computergraphics #computerscience

@dennisallerkamp huh, I always assumed it would use trig somehow, but it's really just piecewise linear? although looking at the source code, it seems like the interpolation is being done in gamma space rather than linear space...

@canmom The HSV color space is often represented as a cone, which suggests the use of trigonometric functions. However, it is actually just a simple projection of an RGB cube that uses only piecewise linear functions.

The precise definition of an HSV color space depends on the underlying RGB color space. I use sRGB to represent the resulting color, though I could have chosen a different color space.

Gamma correction must always be taken into account when our calculations are based on a physical model. For example, this is the case with lighting calculations. However, when selecting colors, we can use any type of interpolation.
As long as we are not performing lighting calculations in the HSV color space, gamma is not a problem.