Represents a colour stop in a gradient.
More...
Represents a colour stop in a gradient.
Definition at line 113 of file Brush.cs.
◆ GradientStop()
VectSharp.GradientStop.GradientStop |
( |
Colour |
colour, |
|
|
double |
offset |
|
) |
| |
Creates a new GradientStop instance.
- Parameters
-
colour | The Colour at the gradient stop. |
offset | The offset of the gradient stop. Range: [0, 1]. |
Definition at line 130 of file Brush.cs.
◆ MultiplyOpacity()
GradientStop VectSharp.GradientStop.MultiplyOpacity |
( |
double |
opacity | ) |
|
Returns a GradientStop corresponding to the current instance, whose colour's opacity has been multiplied by the specified value.
- Parameters
-
opacity | The value that will be used to multiply the colour's opacity. |
- Returns
- A GradientStop corresponding to the current instance, whose colour's opacity has been multiplied by the specified value.
Definition at line 142 of file Brush.cs.
◆ Colour
Colour VectSharp.GradientStop.Colour |
|
get |
◆ Offset
double VectSharp.GradientStop.Offset |
|
get |
The offset of the gradient stop. Range: [0, 1].
Definition at line 123 of file Brush.cs.
The documentation for this struct was generated from the following file: