Class AjxColor
Method Detail
<static>
{string}
AjxColor.color(r, g, b)
Returns a color string of the form "#rrggbb" from the given color
components.
<static>
{array}
AjxColor.components(color)
Returns the RGB components (as an array) of the given color.
<static>
{string}
AjxColor.darken(color, delta)
Darkens the specified color by the given amount.
<static>
{string}
AjxColor.deepen(color, adjustment)
Deepens the specified color. This operation is different than darken
because it retains the brightness of the color even when it gets
darker. Just making a color darker tends to result in a color that
is "muddy".
The color is deepened by first determining the largest individual component value and then multiplying each component value by the ratio of its value to the largest value. Then, optionally, each value is multiplied by the adjustment value in order to deepen a little more or a little less. Typical adjustment values are around 1 such as .9 or 1.1.
<static>
{string}
AjxColor.lighten(color, delta)
Lightens the specified color by the given amount.
{string}
toString()
Returns a string representation of the object.
|
||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:25 GMT-0400 (EDT)
|