Skip to content

GradientBrushHelper.Sample method

Samples the gradient brush at t (0–1) and returns an interpolated color. Used by backends that do not natively support gradients as a single representative color.

public static Color Sample(IReadOnlyList<GradientStop> stops, double t)