Specifies the properties of a transition point of a gradient.
Implements
- I
Members
No filters for this type
Constructors
Creates a new transition point of a gradient with the given color and offset.
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.
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.
Gets or sets the color of this transition point.
conversionfinal
Property Value
The color of this transition point.
Methods
Freezes and returns 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.