Gradient
interludesoftware.tick¶
Interlude.Tick¶
Gradient Struct¶
Describes a color gradient for use with Fill and FillRounded. Supports up to 4 color stops and three types: Linear (any angle), Radial (center outward), and Box (Chebyshev distance from center). Create via the static factory methods rather than the constructor.
Fields¶
Gradient.Angle Field¶
Angle in degrees for Linear gradients. 0 = top to bottom, 90 = left to right.
Field Value¶
Methods¶
Gradient.Box(Color, Color) Method¶
Creates a two-stop box (Chebyshev-distance) gradient from inner to outer.
Parameters¶
inner UnityEngine.Color
outer UnityEngine.Color
Returns¶
Gradient.Box(GradientStop, GradientStop) Method¶
Creates a two-stop box gradient using explicit GradientStop positions.
public static Interlude.Tick.Gradient Box(Interlude.Tick.GradientStop s0, Interlude.Tick.GradientStop s1);
Parameters¶
s0 GradientStop
s1 GradientStop
Returns¶
Gradient.Box(GradientStop, GradientStop, GradientStop) Method¶
Creates a three-stop box gradient.
public static Interlude.Tick.Gradient Box(Interlude.Tick.GradientStop s0, Interlude.Tick.GradientStop s1, Interlude.Tick.GradientStop s2);
Parameters¶
s0 GradientStop
s1 GradientStop
s2 GradientStop
Returns¶
Gradient.Box(GradientStop, GradientStop, GradientStop, GradientStop) Method¶
Creates a four-stop box gradient.
public static Interlude.Tick.Gradient Box(Interlude.Tick.GradientStop s0, Interlude.Tick.GradientStop s1, Interlude.Tick.GradientStop s2, Interlude.Tick.GradientStop s3);
Parameters¶
s0 GradientStop
s1 GradientStop
s2 GradientStop
s3 GradientStop
Returns¶
Gradient.Horizontal(Color, Color) Method¶
Creates a horizontal linear gradient from left to right.
Parameters¶
left UnityEngine.Color
right UnityEngine.Color
Returns¶
Gradient.Linear(float, Color, Color) Method¶
Creates a two-stop linear gradient at the given angle in degrees.
Parameters¶
angleDeg System.Single
from UnityEngine.Color
Returns¶
Gradient.Linear(float, GradientStop, GradientStop) Method¶
Creates a two-stop linear gradient at the given angle using explicit GradientStop positions.
public static Interlude.Tick.Gradient Linear(float angleDeg, Interlude.Tick.GradientStop s0, Interlude.Tick.GradientStop s1);
Parameters¶
angleDeg System.Single
s0 GradientStop
s1 GradientStop
Returns¶
Gradient.Linear(float, GradientStop, GradientStop, GradientStop) Method¶
Creates a three-stop linear gradient at the given angle.
public static Interlude.Tick.Gradient Linear(float angleDeg, Interlude.Tick.GradientStop s0, Interlude.Tick.GradientStop s1, Interlude.Tick.GradientStop s2);
Parameters¶
angleDeg System.Single
s0 GradientStop
s1 GradientStop
s2 GradientStop
Returns¶
Gradient.Linear(float, GradientStop, GradientStop, GradientStop, GradientStop) Method¶
Creates a four-stop linear gradient at the given angle.
public static Interlude.Tick.Gradient Linear(float angleDeg, Interlude.Tick.GradientStop s0, Interlude.Tick.GradientStop s1, Interlude.Tick.GradientStop s2, Interlude.Tick.GradientStop s3);
Parameters¶
angleDeg System.Single
s0 GradientStop
s1 GradientStop
s2 GradientStop
s3 GradientStop
Returns¶
Gradient.Radial(Color, Color) Method¶
Creates a two-stop radial gradient from inner at the center to outer at the edge.
Parameters¶
inner UnityEngine.Color
outer UnityEngine.Color
Returns¶
Gradient.Radial(GradientStop, GradientStop) Method¶
Creates a two-stop radial gradient using explicit GradientStop positions.
public static Interlude.Tick.Gradient Radial(Interlude.Tick.GradientStop s0, Interlude.Tick.GradientStop s1);
Parameters¶
s0 GradientStop
s1 GradientStop
Returns¶
Gradient.Radial(GradientStop, GradientStop, GradientStop) Method¶
Creates a three-stop radial gradient.
public static Interlude.Tick.Gradient Radial(Interlude.Tick.GradientStop s0, Interlude.Tick.GradientStop s1, Interlude.Tick.GradientStop s2);
Parameters¶
s0 GradientStop
s1 GradientStop
s2 GradientStop
Returns¶
Gradient.Radial(GradientStop, GradientStop, GradientStop, GradientStop) Method¶
Creates a four-stop radial gradient.
public static Interlude.Tick.Gradient Radial(Interlude.Tick.GradientStop s0, Interlude.Tick.GradientStop s1, Interlude.Tick.GradientStop s2, Interlude.Tick.GradientStop s3);
Parameters¶
s0 GradientStop
s1 GradientStop
s2 GradientStop
s3 GradientStop
Returns¶
Gradient.Solid(Color) Method¶
Creates a single-color gradient.
Parameters¶
color UnityEngine.Color
Returns¶
Gradient.Vertical(Color, Color) Method¶
Creates a vertical linear gradient from top to bottom.
Parameters¶
bottom UnityEngine.Color