Version 3.0.0.2

ColorExtensions class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public static class ColorExtensions
Inheritance
  • System.Object
  • ColorExtensions

Methods

Lerp(Color[], Single)
public static Color Lerp(this Color[] colors, float t)
Parameters
UnityEngine.Color[] colors

System.Single t

Returns
UnityEngine.Color

MoveTowards(Color, Color, Single)
public static Color MoveTowards(this Color from, Color to, float maxDelta)
Parameters
UnityEngine.Color from

UnityEngine.Color to

System.Single maxDelta

Returns
UnityEngine.Color

NormalizeRGB(Color)
public static Color NormalizeRGB(this Color color)
Parameters
UnityEngine.Color color

Returns
UnityEngine.Color

Pow(Color, Single)
public static Color Pow(this Color color, float factor)
Parameters
UnityEngine.Color color

System.Single factor

Returns
UnityEngine.Color

ToCSharpColor(Color)
public static string ToCSharpColor(this Color color)
Parameters
UnityEngine.Color color

Returns
System.String

TryParseString(String, out Color)
public static bool TryParseString(string colorStr, out Color color)
Parameters
System.String colorStr

UnityEngine.Color color

Returns
System.Boolean