Class Gradient
- Namespace
- ScottPlot
- Assembly
- ScottPlot.dll
public class Gradient : IHatch
- Inheritance
-
Gradient
- Implements
- Inherited Members
- Extension Methods
Constructors
Gradient(GradientType)
public Gradient(GradientType gradientType = GradientType.Linear)
Parameters
gradientType
GradientType
Properties
AlignmentEnd
End of linear gradient
public Alignment AlignmentEnd { get; set; }
Property Value
AlignmentStart
Start of linear gradient
public Alignment AlignmentStart { get; set; }
Property Value
ColorPositions
Get or set the positions (in the range of 0..1) of each corresponding color, or null to evenly distribute the colors.
public float[] ColorPositions { get; set; }
Property Value
- float[]
Colors
Colors used for the gradient, or null to use the Hatch colors.
public Color[] Colors { get; set; }
Property Value
- Color[]
EndAngle
Get or set the end angle in degrees for sweep gradient
public float EndAngle { get; set; }
Property Value
GradientType
Describes the geometry of a color gradient used to fill an area
public GradientType GradientType { get; set; }
Property Value
StartAngle
Get or set the start angle in degrees for sweep gradient
public float StartAngle { get; set; }
Property Value
TileMode
Get or set how the shader should handle drawing outside the original bounds.
public SKShaderTileMode TileMode { get; set; }
Property Value
Methods
GetShader(Color, Color, PixelRect)
public SKShader GetShader(Color backgroundColor, Color hatchColor, PixelRect rect)