Parameter | Type | Description |
---|---|---|
obj | undefined | |
attributes | undefined | |
values | undefined |
Adjusts the brightness of a color.
Parameter | Type | Description |
---|---|---|
col | Number | The base color |
b | Number | A positive or negative value to adjust the brightness |
The modified color
Creates a gradient object
Parameter | Type | Description |
---|---|---|
entries | Array | An array of numbers representing colors |
The modified color
A helper method for configuring a circular gauge.
Parameter | Type | Description |
---|---|---|
scale | CircularScale | A circular scale |
indicator | IndicatorBase | A circular indicator |
originX | Number | The x-coordinate of the center of the scale (in pixels) |
originY | Number | The y-coordinate of the center of the scale (in pixels) |
radius | Number | The radius of the scale (in pixels) |
startAngle | Number | The start angle of the scale (in degrees) |
endAngle | Number | The end angle of the scale (in degrees) |
orientation | String |
Optional The orientation of the scale, can be "clockwise" or "cclockwise" |
font | Object |
Optional The font used for the gauge |
labelPosition | String |
Optional The position of the labels regarding |
tickShapeFunc | Object |
Optional A drawing function for the ticks |
The modified color