View Source jsboot/color.js, line 45

# Members

#### # inner EGA

EGA Color definition.

##### Properties:

Name | Type | Description
--- | --- | ---
`BLACK` | Color | EGA color.
`BLUE` | Color | EGA color.
`GREEN` | Color | EGA color.
`CYAN` | Color | EGA color.
`RED` | Color | EGA color.
`MAGENTA` | Color | EGA color.
`BROWN` | Color | EGA color.
`LIGHT_GRAY` | Color | EGA color.
`LIGHT_GREY` | Color | EGA color.
`DARK_GRAY` | Color | EGA color.
`DARK_GREY` | Color | EGA color.
`LIGHT_BLUE` | Color | EGA color.
`LIGHT_GREEN` | Color | EGA color.
`LIGHT_CYAN` | Color | EGA color.
`LIGHT_RED` | Color | EGA color.
`LIGHT_MAGENTA` | Color | EGA color.
`YELLOW` | Color | EGA color.
`WHITE` | Color | EGA color.

View Source jsboot/color.js, line 70

#### # inner NO_COLOR

##### Properties:

Name | Type | Description
--- | --- | ---
`NO_COLOR` | Color | the transparent Color.

View Source jsboot/color.js, line 94

# Methods

#### # inner Color(r, g, b, aopt) → {number}

create RGBA color.

##### Parameters:

Name | Type | Attributes | Description
--- | --- | --- | ---
`r` | number |  | red (0-255)
`g` | number |  | green (0-255)
`b` | number |  | blue (0-255)
`a` | number | <optional> | alpha (0-255) (optional)

View Source doc/internal.js, line 636

Returns:
a color.
Type: number

#### # inner GetAlpha(c) → {number}

get alpha part of color.

##### Parameters:

Name | Type | Description
--- | --- | ---
`c` | number | a color

View Source doc/internal.js, line 664

Returns:
the alpha part.
Type: number

#### # inner GetBlue(c) → {number}

get blue part of color.

##### Parameters:

Name | Type | Description
--- | --- | ---
`c` | number | a color

View Source doc/internal.js, line 657

Returns:
the blue part.
Type: number

#### # inner GetGreen(c) → {number}

get green part of color.

##### Parameters:

Name | Type | Description
--- | --- | ---
`c` | number | a color

View Source doc/internal.js, line 650

Returns:
the green part.
Type: number

#### # inner GetRed(c) → {number}

get red part of color.

##### Parameters:

Name | Type | Description
--- | --- | ---
`c` | number | a color

View Source doc/internal.js, line 643

Returns:
the red part.
Type: number

#### # inner HSBColor(h, s, b, a)

Create Color() from HSB[A].

##### Parameters:

Name | Type | Description
--- | --- | ---
`h` | number | the hue [0..255].
`s` | number | the saturation [0..255].
`b` | number | the brightness [0..255].
`a` | number | the alpha value [0..255].

View Source jsboot/color.js, line 104

Color definition.

View Source jsboot/color.js, line 45

# Members

#### # inner EGA

EGA Color definition.

##### Properties:

Name | Type | Description
--- | --- | ---
`BLACK` | Color | EGA color.
`BLUE` | Color | EGA color.
`GREEN` | Color | EGA color.
`CYAN` | Color | EGA color.
`RED` | Color | EGA color.
`MAGENTA` | Color | EGA color.
`BROWN` | Color | EGA color.
`LIGHT_GRAY` | Color | EGA color.
`LIGHT_GREY` | Color | EGA color.
`DARK_GRAY` | Color | EGA color.
`DARK_GREY` | Color | EGA color.
`LIGHT_BLUE` | Color | EGA color.
`LIGHT_GREEN` | Color | EGA color.
`LIGHT_CYAN` | Color | EGA color.
`LIGHT_RED` | Color | EGA color.
`LIGHT_MAGENTA` | Color | EGA color.
`YELLOW` | Color | EGA color.
`WHITE` | Color | EGA color.

View Source jsboot/color.js, line 70

#### # inner NO_COLOR

##### Properties:

Name | Type | Description
--- | --- | ---
`NO_COLOR` | Color | the transparent Color.

View Source jsboot/color.js, line 94

# Methods

#### # inner Color(r, g, b, aopt) → {number}

create RGBA color.

##### Parameters:

Name | Type | Attributes | Description
--- | --- | --- | ---
`r` | number |  | red (0-255)
`g` | number |  | green (0-255)
`b` | number |  | blue (0-255)
`a` | number | <optional> | alpha (0-255) (optional)

View Source doc/internal.js, line 636

Returns:
a color.
Type: number

#### # inner GetAlpha(c) → {number}

get alpha part of color.

##### Parameters:

Name | Type | Description
--- | --- | ---
`c` | number | a color

View Source doc/internal.js, line 664

Returns:
the alpha part.
Type: number

#### # inner GetBlue(c) → {number}

get blue part of color.

##### Parameters:

Name | Type | Description
--- | --- | ---
`c` | number | a color

View Source doc/internal.js, line 657

Returns:
the blue part.
Type: number

#### # inner GetGreen(c) → {number}

get green part of color.

##### Parameters:

Name | Type | Description
--- | --- | ---
`c` | number | a color

View Source doc/internal.js, line 650

Returns:
the green part.
Type: number

#### # inner GetRed(c) → {number}

get red part of color.

##### Parameters:

Name | Type | Description
--- | --- | ---
`c` | number | a color

View Source doc/internal.js, line 643

Returns:
the red part.
Type: number

#### # inner HSBColor(h, s, b, a)

Create Color() from HSB[A].

##### Parameters:

Name | Type | Description
--- | --- | ---
`h` | number | the hue [0..255].
`s` | number | the saturation [0..255].
`b` | number | the brightness [0..255].
`a` | number | the alpha value [0..255].

View Source jsboot/color.js, line 104