Members
-
inner EGA
-
EGA Color definition.
Properties:
Name Type Description BLACKColor EGA color. BLUEColor EGA color. GREENColor EGA color. CYANColor EGA color. REDColor EGA color. MAGENTAColor EGA color. BROWNColor EGA color. LIGHT_GRAYColor EGA color. LIGHT_GREYColor EGA color. DARK_GRAYColor EGA color. DARK_GREYColor EGA color. LIGHT_BLUEColor EGA color. LIGHT_GREENColor EGA color. LIGHT_CYANColor EGA color. LIGHT_REDColor EGA color. LIGHT_MAGENTAColor EGA color. YELLOWColor EGA color. WHITEColor EGA color. -
inner NO_COLOR
-
Properties:
Name Type Description NO_COLORColor the transparent Color.
Methods
-
inner Color(r, g, b, a) → {number}
-
create RGBA color.
Parameters:
Name Type Description rnumber red (0-255) gnumber green (0-255) bnumber blue (0-255) anumber alpha (0-255) (optional) Returns:
number - a color. -
inner GetAlpha(c) → {number}
-
get alpha part of color.
Parameters:
Name Type Description cnumber a color Returns:
number - the alpha part. -
inner GetBlue(c) → {number}
-
get blue part of color.
Parameters:
Name Type Description cnumber a color Returns:
number - the blue part. -
inner GetGreen(c) → {number}
-
get green part of color.
Parameters:
Name Type Description cnumber a color Returns:
number - the green part. -
inner GetRed(c) → {number}
-
get red part of color.
Parameters:
Name Type Description cnumber a color Returns:
number - the red part. -
inner HSBColor(h, s, b, a)
-
Create Color() from HSB[A].
Parameters:
Name Type Description hnumber the hue [0..255]. snumber the saturation [0..255]. bnumber the brightness [0..255]. anumber the alpha value [0..255].