Constructor
new Linear()
- Description:
- Create a Linear gradient object type
- Source:
Properties:
Name | Type | Description |
---|---|---|
start |
Point | Start X & Y axis coordinates |
end |
Point | End X & Y axis coordinates |
stops |
Array.<Stop> | Array of color stops |
Methods
end(value)
- Description:
- Set ending point
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Point | Ending point |
end() → {Point}
- Description:
- Set ending point
- Source:
Returns:
Ending point
- Type
- Point
start(value)
- Description:
- Set starting point
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
Point | Starting point |
start() → {Point}
- Description:
- Set starting point
- Source:
Returns:
Starting point
- Type
- Point
stopColorCycle(start, end, progress, stop, max, clear, draw)
- Description:
- Cycle colors for gradient stop(s)
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
start |
Object | Color model & values |
end |
Object | Color model & values |
progress |
number | Progress time unit; 0.00 - 1.00 |
stop |
number | Color stop to cycle |
max |
number | Maximum number of steps between interpolation |
clear |
function | Clear callback from root object |
draw |
function | Draw callback from root object |
stops(values)
- Description:
- Set color stops
- Source:
Parameters:
Name | Type | Description |
---|---|---|
values |
Array.<Stop> | Color stops |
stops() → {Array.<Stop>}
- Description:
- Get color stops
- Source:
Returns:
Color stops
- Type
- Array.<Stop>