文档

Unity Engine

Unity Engine

HSVToRGB(float, float, float, bool)

Convert a set of HSV values to an RGB Color.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
警告
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.