Skip to content

GradientStyle.Linear

ClassChartGuruChartGuru
public sealed class GradientStyle.Linear : GradientStyle

Creates linear gradient styles between configurable start and end points.

public UnitPoint StartPoint

Returns

ChartGuru.UnitPoint

public UnitPoint EndPoint

Returns

ChartGuru.UnitPoint

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

public Linear()