Library: Color
Overview
Color
  • desc: Color
Constructors
Functions
Timeplot.Color(color)
Create a Color object that can be used to manipulate colors programmatically.
parameters
color
Sets the RGB values of this coor
parameters
Number r
Timeplot.Color.transparency(a)
Set the color transparency
parameters
float a Transparency value, between 0.0 (fully transparent) and 1.0 (fully opaque).
Timeplot.Color.lighten(level)
Lightens the color.
parameters
integer level Level to lighten the color with.
Timeplot.Color.darken(level)
Darkens the color.
parameters
integer level Level to darken the color with.
Checks and validates if the hex values r, g and b are between 0 and 255.
Timeplot.Color.toHexString()
Returns the hexadecimal representation of this color (without the alpha channel as hex colors don't support it)
Objects
Generated by JsDoc Toolkit on Fri, 27 Jul 2007 04:11:47 GMT