VectSharp 2.6.1
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 113 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 130 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 142 of file Brush.cs.

Property Documentation

◆ Colour

Colour VectSharp.GradientStop.Colour
get

The Colour at the gradient stop.

Definition at line 118 of file Brush.cs.

◆ 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: