GradientStyle.Linear
public sealed class GradientStyle.Linear : GradientStyleCreates linear gradient styles between configurable start and end points.
Fields
Section titled “Fields”
StartPoint
Section titled “StartPoint”public UnitPoint StartPointReturns
ChartGuru.UnitPoint
EndPoint
Section titled “EndPoint”public UnitPoint EndPointReturns
ChartGuru.UnitPoint
Methods
Section titled “Methods”
Evaluate(Vector2)
Section titled “Evaluate(Vector2)”public override Color Evaluate(Vector2 normalizedPosition)Evaluates the gradient color at a normalized 2D position within the mark’s
bounding box. normalizedPosition ranges from (0,0) at
bottom-left to (1,1) at top-right.
Parameters
| Name | Type |
|---|---|
normalizedPosition |
UnityEngine.Vector2 |
Returns
UnityEngine.Color
Constructors
Section titled “Constructors”
Linear()
Section titled “Linear()”public Linear()