VectSharp 2.5.0
A light library for C# vector graphics
Loading...
Searching...
No Matches
VectSharp.GradientStop Struct Reference

Represents a colour stop in a gradient. More...

Public Member Functions

 GradientStop (Colour colour, double offset)
 Creates a new GradientStop instance. More...
 
GradientStop MultiplyOpacity (double opacity)
 Returns a GradientStop corresponding to the current instance, whose colour's opacity has been multiplied by the specified value. More...
 

Properties

Colour Colour [get]
 The Colour at the gradient stop. More...
 
double Offset [get]
 The offset of the gradient stop. Range: [0, 1]. More...
 

Detailed Description

Represents a colour stop in a gradient.

Definition at line 109 of file Brush.cs.

Constructor & Destructor Documentation

◆ GradientStop()

VectSharp.GradientStop.GradientStop ( Colour  colour,
double  offset 
)

Creates a new GradientStop instance.

Parameters
colourThe Colour at the gradient stop.
offsetThe offset of the gradient stop. Range: [0, 1].

Definition at line 126 of file Brush.cs.

Member Function Documentation

◆ 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
opacityThe 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 137 of file Brush.cs.

Property Documentation

◆ Colour

Colour VectSharp.GradientStop.Colour
get

The Colour at the gradient stop.

Definition at line 114 of file Brush.cs.

◆ Offset

double VectSharp.GradientStop.Offset
get

The offset of the gradient stop. Range: [0, 1].

Definition at line 119 of file Brush.cs.


The documentation for this struct was generated from the following file: