rgb2hsv

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

  1. vec3 rgb2hsv(vec3 inp)
  2. vec4 rgb2hsv(vec4 inp)
    @safe pure nothrow
    rgb2hsv

Meta