inmath.hsv

inmath.hsv

Members

Functions

hsv2rgb
vec3 hsv2rgb(vec3 inp)

Converts a 3 dimensional color-vector from the HSV to the RGB colorspace. RGB colors will be in the range [0, 1]. This function is not marked es pure, since it depends on std.math.floor, which is also not pure.

hsv2rgb
vec4 hsv2rgb(vec4 inp)

Converts a 4 dimensional color-vector from the HSV to the RGB colorspace. The alpha value is not touched and the resulting RGB colors will be in the range [0, 1].

rgb2hsv
vec3 rgb2hsv(vec3 inp)

Converts a 3 dimensional color-vector from the RGB to the HSV colorspace. The function assumes that each component is in the range [0, 1].

rgb2hsv
vec4 rgb2hsv(vec4 inp)

Converts a 4 dimensional color-vector from the RGB to the HSV colorspace. The alpha value is not touched. This function also assumes that each component is in the range [0, 1].

Meta

Authors

David Herberth, Inochi2D Project