Specifies the properties of a transition point of a gradient.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.GradientStop
Constructors
Creates a new transition point of a gradient with the given rgba values and offset.
Remarks
The rgba values must be between 0 and 255.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- 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.
Methods
Clones this instance by returning a memberwiseClone or this in case this instance is already frozen.
Freezes and returns this instance.
Remarks
Freezing an object makes it immutable, which can result in performance enhancements.
Returns
- ↪GradientStop
- This instance, made immutable.