Skip to content

TextStudio2DFourCornerGradient

StructTextStudioTextStudio
public struct TextStudio2DFourCornerGradient

Four colors bilinearly interpolated across a normalized rectangular paint domain.

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

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

public Color TopLeft { get; }

Returns

UnityEngine.Color

public Color TopRight { get; }

Returns

UnityEngine.Color

public Color BottomLeft { get; }

Returns

UnityEngine.Color

public Color BottomRight { get; }

Returns

UnityEngine.Color