TextStudio2DFourCornerGradient
public struct TextStudio2DFourCornerGradientFour colors bilinearly interpolated across a normalized rectangular paint domain.
Constructors
Section titled “Constructors”
TextStudio2DFourCornerGradient(Color, Color, Color, Color)
Section titled “TextStudio2DFourCornerGradient(Color, Color, Color, Color)”public TextStudio2DFourCornerGradient(Color topLeft, Color topRight, Color bottomLeft, Color bottomRight)Creates a rectangular gradient from its top-left, top-right, bottom-left, and bottom-right colors.
Parameters
| Name | Type |
|---|---|
topLeft |
UnityEngine.Color |
topRight |
UnityEngine.Color |
bottomLeft |
UnityEngine.Color |
bottomRight |
UnityEngine.Color |
Methods
Section titled “Methods”
Evaluate(float, float)
Section titled “Evaluate(float, float)”public Color Evaluate(float u, float v)Evaluates normalized coordinates where (0, 0) is bottom-left and (1, 1) is top-right.
Parameters
| Name | Type |
|---|---|
u |
System.Single |
v |
System.Single |
Returns
UnityEngine.Color
Properties
Section titled “Properties”
TopLeft
Section titled “TopLeft”public Color TopLeft { get; }Returns
UnityEngine.Color
TopRight
Section titled “TopRight”public Color TopRight { get; }Returns
UnityEngine.Color
BottomLeft
Section titled “BottomLeft”public Color BottomLeft { get; }Returns
UnityEngine.Color
BottomRight
Section titled “BottomRight”public Color BottomRight { get; }Returns
UnityEngine.Color