@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.