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

NameType
topLeftUnityEngine.Color
topRightUnityEngine.Color
bottomLeftUnityEngine.Color
bottomRightUnityEngine.Color

public Color Evaluate(float u, float v)

Evaluates normalized coordinates where (0, 0) is bottom-left and (1, 1) is top-right.

Parameters

NameType
uSystem.Single
vSystem.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