Specifies the properties of a transition point of a gradient.
Type Details
- yFiles module
- view
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.
Property Value
The color of this transition point.
Methods
Clones this instance by returning a memberwise clone, or by returning this
if this instance is 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.