Class Tee.Gradient
Colors and direction to fill areas with gradients
Defined in: <..\..\src\teechart.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Tee.Gradient(chart)
|
Field Attributes | Field Name and Description |
---|---|
Array of colors to define the gradient.
|
|
Defines the gradient orientation
("topbottom", "bottomtop", "leftright", "rightleft", "radial", "diagonalup", "diagonaldown").
|
|
For radial gradients, moves the center xy position.
|
|
Array of percentages from 0 to 1, for each color in colors array.
|
|
Determines if contents will be filled using this gradient.
|
Method Attributes | Method Name and Description |
---|---|
create(r, color)
|
|
rect(x, y, width, height, color)
|
Class Detail
Tee.Gradient(chart)
- Parameters:
- {Tee.Chart} chart
- The parent chart this gradient object belongs to.
Field Detail
{Color[]}
colors
Array of colors to define the gradient.
{String}
direction
Defines the gradient orientation
("topbottom", "bottomtop", "leftright", "rightleft", "radial", "diagonalup", "diagonaldown").
- Default Value:
- "topbottom"
{Point}
offset
For radial gradients, moves the center xy position.
{Number[]}
stops
Array of percentages from 0 to 1, for each color in colors array.
{Boolean}
visible
Determines if contents will be filled using this gradient.
- Default Value:
- false
Method Detail
{CanvasGradient}
create(r, color)
- Parameters:
- r
- color
- Returns:
- {CanvasGradient} Returns a canvas gradient
{CanvasGradient}
rect(x, y, width, height, color)
- Parameters:
- x
- y
- width
- height
- color
- Returns:
- {CanvasGradient} Returns a canvas gradient