Click or drag to resize

ChartToolsCalcGradient Method

LightningChart .NET Help
Calculates the gradient color between two colors.

Namespace:  Arction.WinForms.Charting
Assembly:  Arction.WinForms.Charting.LightningChart (in Arction.WinForms.Charting.LightningChart.dll) Version: 10.3.1
Syntax
public static Color CalcGradient(
	Color colorFrom,
	Color colorTo,
	double positionPercents
)

Parameters

colorFrom
Type: System.DrawingColor
From-color.
colorTo
Type: System.DrawingColor
To-color.
positionPercents
Type: SystemDouble
Gradient color position in percents (0...100%).

Return Value

Type: Color
Gradient color.
See Also