Constructor
new Stop()
- Description:
- Source:
Properties:
Name |
Type |
Attributes |
Default |
Description |
color |
string
|
<optional>
|
<Rgb>
|
Color model & value |
offset |
number
|
|
|
Representation of the color stop position; 0 = start, & 1 = end |
Methods
color(value)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
value |
Object
|
Color model; Rgb, Hsl, Hwb |
color() → {Object}
- Description:
- Source:
Returns:
Color model; Rgb, Hsl, Hwb
-
Type
-
Object
offset(value)
- Description:
- Source:
Parameters:
Name |
Type |
Description |
value |
number
|
Offset value |
offset() → {number}
- Description:
- Source:
Returns:
Offset value
-
Type
-
number