TextStudioGlyphColorQuad
public readonly struct TextStudioGlyphColorQuadRenderer-neutral source colors for the four canonical corners of a glyph. The order matches TMP quads: bottom-left, top-left, top-right, bottom-right.
Constructors
Section titled “Constructors”
TextStudioGlyphColorQuad(Color32, Color32, Color32, Color32)
Section titled “TextStudioGlyphColorQuad(Color32, Color32, Color32, Color32)”public TextStudioGlyphColorQuad(Color32 bottomLeft, Color32 topLeft, Color32 topRight, Color32 bottomRight)Creates source colors in canonical bottom-left, top-left, top-right, bottom-right order.
Parameters
| Name | Type |
|---|---|
bottomLeft |
UnityEngine.Color32 |
topLeft |
UnityEngine.Color32 |
topRight |
UnityEngine.Color32 |
bottomRight |
UnityEngine.Color32 |
Methods
Section titled “Methods”
Uniform(Color32)
Section titled “Uniform(Color32)”public static TextStudioGlyphColorQuad Uniform(Color32 color)Creates a quad with one color at every corner.
Parameters
| Name | Type |
|---|---|
color |
UnityEngine.Color32 |
Returns
TextStudio.TextStudioGlyphColorQuad
Lerp(in TextStudioGlyphColorQuad, in TextStudioGlyphColorQuad, float)
Section titled “Lerp(in TextStudioGlyphColorQuad, in TextStudioGlyphColorQuad, float)”public static TextStudioGlyphColorQuad Lerp(in TextStudioGlyphColorQuad first, in TextStudioGlyphColorQuad second, float amount)Interpolates corresponding corners with a clamped normalized amount.
Parameters
| Name | Type |
|---|---|
first |
TextStudio.TextStudioGlyphColorQuad |
second |
TextStudio.TextStudioGlyphColorQuad |
amount |
System.Single |
Returns
TextStudio.TextStudioGlyphColorQuad
Resolve(in EvaluatedGlyphState)
Section titled “Resolve(in EvaluatedGlyphState)”public TextStudioGlyphColorQuad Resolve(in EvaluatedGlyphState state)Applies evaluated color composition independently to all source corners.
Parameters
| Name | Type |
|---|---|
state |
TextStudio.EvaluatedGlyphState |
Returns
TextStudio.TextStudioGlyphColorQuad
Sample(float, float)
Section titled “Sample(float, float)”public Color32 Sample(float normalizedX, float normalizedY)Bilaterally samples the quad at clamped normalized coordinates.
Parameters
| Name | Type |
|---|---|
normalizedX |
System.Single |
normalizedY |
System.Single |
Returns
UnityEngine.Color32
Properties
Section titled “Properties”
public static TextStudioGlyphColorQuad White { get; }Returns
TextStudio.TextStudioGlyphColorQuad
BottomLeft
Section titled “BottomLeft”public Color32 BottomLeft { get; }Returns
UnityEngine.Color32
TopLeft
Section titled “TopLeft”public Color32 TopLeft { get; }Returns
UnityEngine.Color32
TopRight
Section titled “TopRight”public Color32 TopRight { get; }Returns
UnityEngine.Color32
BottomRight
Section titled “BottomRight”public Color32 BottomRight { get; }Returns
UnityEngine.Color32
IsUniform
Section titled “IsUniform”public bool IsUniform { get; }Returns
System.Boolean
IsInitialized
Section titled “IsInitialized”public bool IsInitialized { get; }Returns
System.Boolean