Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Color.RGBToHSV

public static void RGBToHSV(Color rgbColor, out float H, out float S, out float V);

Parameters

rgbColor An input color.
H Output variable for hue.
S Output variable for saturation.
V Output variable for value.

Description

Calculates the hue, saturation and value of an RGB input color.