RGB To HSV

Pure
RGBToHSV

Converts an RGB color to HSV (Hue, Saturation, Value) components.

Type: Pure (no side effects)
Category: Fortuna|Color & Visual
Keywords: color & visual

Inputs

NameTypeDefaultDescription
ColorFLinearColorColor parameter

Outputs

NameTypeDescription
Hfloat 0-360H output
Sfloat 0-1S output
Vfloat 0-1V output

Example Use Cases

Example 1

Determine if a color is 'bright' by checking the V component.

Example 2

Shift hue while preserving brightness.