gl3n.ext.hsv
-
Declaration
pure nothrow @safe vec3rgb2hsv(vec3inp);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].
-
Declaration
pure nothrow @safe vec4rgb2hsv(vec4inp);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].
-
Declaration
nothrow @safe vec3hsv2rgb(vec3inp);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.
-
Declaration
nothrow @safe vec4hsv2rgb(vec4inp);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].