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
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>