C

GradientStop

Specifies the properties of a transition point of a gradient.
ImplementsInheritance Hierarchy

Members

No filters for this type

Constructors

Creates a new transition point of a gradient with the given color and offset.

Parameters

color?: Color
The stop's color.
offset?: number
The offset defined as ratio from 0 to 1. Default value is 0.
Creates a new transition point of a gradient with the given rgba values and offset.
The rgba values must be between 0 and 255.

Parameters

r: number
The red value.
g: number
The green value.
b: number
The blue value.
a?: number
The alpha value, 255 by default.
offset?: number
The offset defined as ratio from 0 to 1. Default value is 0.

Properties

Gets or sets the color of this transition point.
conversionfinal

Property Value

The color of this transition point.
Gets or sets the offset of this transition point.
final

Property Value

The offset of this transition point defined as ratio from 0 to 1.

Methods

Clones this instance by returning a memberwise clone, or by returning this if this instance is frozen.
final

Return Value

Object
An instance of the same type as this instance.
Freezes and returns this instance.
Freezing an object makes it immutable, which can result in performance enhancements.
final

Return Value

GradientStop
This instance, made immutable.
Determines if this instance is frozen.
final

Return Value

boolean
true if this instance is frozen; otherwise, false.