Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HSVToRGB(float, float, float, bool)

Convert a set of HSV values to an RGB Color.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
Warning
Removed. EditorGUIUtility.HSVToRGB is obsolete. Use Color.HSVToRGB instead
Upgrade to Color.HSVToRGB
public static Color HSVToRGB(float H, float S, float V, bool hdr)

Parameters

Returns

Type

Description

ColorThe RGB color calculated from the HSV values passed into the function. The alpha value of the color will be 1.

Remarks

All values are in the range 0 - 1.
Additional Resources: RGBToHSV.