Represents a read-only list of GradientStops.
More...
|
static readonly double | StopTolerance = 1e-7 |
| The minimum distance that is enforced between consecutive gradient stops. More...
|
|
Represents a read-only list of GradientStops.
Definition at line 152 of file Brush.cs.
◆ GradientStops() [1/2]
VectSharp.GradientStops.GradientStops |
( |
IEnumerable< GradientStop > |
gradientStops | ) |
|
Creates a new GradientStops instance containing the specified gradient stops.
- Parameters
-
gradientStops | The gradient stops that will be contained in the GradientStops object. |
Definition at line 182 of file Brush.cs.
◆ GradientStops() [2/2]
VectSharp.GradientStops.GradientStops |
( |
params GradientStop[] |
gradientStops | ) |
|
Creates a new GradientStops instance containing the specified gradient stops.
- Parameters
-
gradientStops | The gradient stops that will be contained in the GradientStops object. |
Definition at line 228 of file Brush.cs.
◆ GetColourAt()
Colour VectSharp.GradientStops.GetColourAt |
( |
double |
position | ) |
|
Gets the colour at a certain position on the gradient.
- Parameters
-
position | The position in the gradient (ranging from 0 to 1). |
- Returns
- The colour of the gradient at the specified position.
Definition at line 238 of file Brush.cs.
◆ GetEnumerator()
IEnumerator< GradientStop > VectSharp.GradientStops.GetEnumerator |
( |
| ) |
|
◆ operator Func< double, Colour >()
Convert a GradientStops object to a function that assigns a colour to values between 0 and 1.
- Parameters
-
◆ StopTolerance
readonly double VectSharp.GradientStops.StopTolerance = 1e-7 |
|
static |
The minimum distance that is enforced between consecutive gradient stops.
Definition at line 157 of file Brush.cs.
◆ Count
int VectSharp.GradientStops.Count |
|
get |
◆ this[int index]
The documentation for this class was generated from the following file: