Documentation

UI::ToHSV

Function

vec3 UI::ToHSV(float r, float g, float b)

Converts normalized RGB values into normalized HSV values.

float r

Red, normalized between 0 and 1.

float g

Green, normalized between 0 and 1.

float b

Blue, normalized between 0 and 1.

Returns vec3