Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class draw2d.Color

    Object
       |
       +--draw2d.Color

class draw2d.Color

Defined in Color.js
Version: 0.9.14
Author: Andreas Herz

Constructor Summary
`draw2d.Color ( red, green , blue)`

Method Summary
`draw2d.Color` | `darker(<float> fraction)` Returns a darker color of the given one..
`int` | `getBlue()` Return the [blue] part of the color.
`int` | `getGreen()` Return the [green] part of the color.
`draw2d.Color` | `getIdealTextColor()` Returns the ideal Text Color.
`int` | `getRed()` Return the [red] part of the color.
`draw2d.Color` | `lighter( <float> fraction)` Make a color lighter.

Constructor Detail

### draw2d.Color

    draw2d.Color( red, green , blue)

Version: 0.9.14
Author: Andreas Herz

Method Detail

### darker

    draw2d.Color darker(<float> fraction)

Returns a darker color of the given one..

Parameters:

`fraction` - Darkness fraction.

Returns:

Darker color.

### getBlue

    int getBlue()

Return the [blue] part of the color.

### getGreen

    int getGreen()

Return the [green] part of the color.

### getIdealTextColor

    draw2d.Color getIdealTextColor()

Returns the ideal Text Color. Usefull for font color selection by a given background color.

Returns:

The ideal inverse color.

### getRed

    int getRed()

Return the [red] part of the color.

### lighter

    draw2d.Color lighter( <float> fraction)

Make a color lighter.

Parameters:

`fraction` - Darkness fraction.

Returns:

Lighter color.

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008