hsv2rgb: HSV to RGB Cone Model Transformation
Cone Model Color Space Mathematics
HSV represents colors within a cone where the apex contains black and the base contains pure colors at maximum value. Unlike HSL's double-cone structure, HSV maintains full color intensity at maximum value regardless of saturation.
The transformation formula applies cone geometry:
Where represent hue , saturation , and value .
The cone model ensures:
- : Pure saturated colors
- : White
- : Black regardless of hue or saturation
- Intermediate values: Linear interpolation between white and pure color
ライブエディター
const fragment = () => { const cell = uv.x.mul(uv.y).pow(0.3) const hue = cell.add(iTime.mul(0.3)).fract() const sat = uv.x.pow(1.5) const value = uv.y.pow(0.7).add(0.3) const color = hsv2rgb(vec3(hue, sat, value)) return vec4(color, 1) }