Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Color

Hierarchy

  • Color

Index

Constructors

constructor

  • new Color(r: number, g: number, b: number): Color

Properties

Readonly b

b: number

Readonly g

g: number

Readonly r

r: number

Static Readonly AliceBlue

AliceBlue: Color = new Color(240, 248, 255)

Static Readonly AntiqueWhite

AntiqueWhite: Color = new Color(250, 235, 215)

Static Readonly Aqua

Aqua: Color = new Color(0, 255, 255)

Static Readonly Aquamarine

Aquamarine: Color = new Color(127, 255, 212)

Static Readonly Azure

Azure: Color = new Color(240, 255, 255)

Static Readonly Beige

Beige: Color = new Color(245, 245, 220)

Static Readonly Bisque

Bisque: Color = new Color(255, 228, 196)

Static Readonly Black

Black: Color = new Color(0, 0, 0)

Static Readonly BlanchedAlmond

BlanchedAlmond: Color = new Color(255, 235, 205)

Static Readonly Blue

Blue: Color = new Color(0, 0, 225)

Static Readonly BlueViolet

BlueViolet: Color = new Color(138, 43, 226)

Static Readonly Brown

Brown: Color = new Color(165, 42, 42)

Static Readonly Burlywood

Burlywood: Color = new Color(222, 184, 135)

Static Readonly CadetBlue

CadetBlue: Color = new Color(95, 158, 160)

Static Readonly Chartreuse

Chartreuse: Color = new Color(127, 255, 0)

Static Readonly Chocolate

Chocolate: Color = new Color(210, 105, 30)

Static Readonly Coral

Coral: Color = new Color(255, 127, 80)

Static Readonly CornflowerBlue

CornflowerBlue: Color = new Color(100, 149, 237)

Static Readonly Cornsilk

Cornsilk: Color = new Color(255, 248, 220)

Static Readonly Crimson

Crimson: Color = new Color(220, 20, 60)

Static Readonly Cyan

Cyan: Color = new Color(0, 255, 255)

Static Readonly DarkBlue

DarkBlue: Color = new Color(0, 0, 139)

Static Readonly DarkCyan

DarkCyan: Color = new Color(0, 139, 139)

Static Readonly DarkGoldenrod

DarkGoldenrod: Color = new Color(184, 134, 11)

Static Readonly DarkGray

DarkGray: Color = new Color(169, 169, 169)

Static Readonly DarkGreen

DarkGreen: Color = new Color(0, 100, 0)

Static Readonly DarkKhaki

DarkKhaki: Color = new Color(189, 183, 107)

Static Readonly DarkMagenta

DarkMagenta: Color = new Color(139, 9, 139)

Static Readonly DarkOliveGreen

DarkOliveGreen: Color = new Color(85, 107, 47)

Static Readonly DarkOrange

DarkOrange: Color = new Color(255, 140, 0)

Static Readonly DarkOrchid

DarkOrchid: Color = new Color(153, 50, 204)

Static Readonly DarkRed

DarkRed: Color = new Color(139, 0, 0)

Static Readonly DarkSalmon

DarkSalmon: Color = new Color(233, 150, 122)

Static Readonly DarkSeaGreen

DarkSeaGreen: Color = new Color(143, 188, 143)

Static Readonly DarkSlateBlue

DarkSlateBlue: Color = new Color(72, 61, 129)

Static Readonly DarkSlateGray

DarkSlateGray: Color = new Color(47, 79, 79)

Static Readonly DarkTurquoise

DarkTurquoise: Color = new Color(0, 206, 209)

Static Readonly DarkViolet

DarkViolet: Color = new Color(148, 0, 211)

Static Readonly DeepPink

DeepPink: Color = new Color(255, 20, 147)

Static Readonly DeepSkyBlue

DeepSkyBlue: Color = new Color(0, 191, 255)

Static Readonly DimGray

DimGray: Color = new Color(105, 105, 105)

Static Readonly DodgerBlue

DodgerBlue: Color = new Color(30, 144, 255)

Static Readonly Firebrick

Firebrick: Color = new Color(178, 34, 34)

Static Readonly FloralWhite

FloralWhite: Color = new Color(255, 250, 240)

Static Readonly ForestGreen

ForestGreen: Color = new Color(34, 139, 34)

Static Readonly Fuchsia

Fuchsia: Color = new Color(255, 0, 255)

Static Readonly Gainsboro

Gainsboro: Color = new Color(220, 220, 220)

Static Readonly GhostWhite

GhostWhite: Color = new Color(248, 248, 255)

Static Readonly Gold

Gold: Color = new Color(255, 215, 0)

Static Readonly Goldenrod

Goldenrod: Color = new Color(218, 165, 32)

Static Readonly Gray

Gray: Color = new Color(128, 128, 128)

Static Readonly Green

Green: Color = new Color(0, 128, 0)

Static Readonly GreenYellow

GreenYellow: Color = new Color(173, 255, 47)

Static Readonly Honeydew

Honeydew: Color = new Color(240, 255, 240)

Static Readonly HotPink

HotPink: Color = new Color(255, 105, 180)

Static Readonly IndianRed

IndianRed: Color = new Color(205, 92, 92)

Static Readonly Indigo

Indigo: Color = new Color(75, 0, 130)

Static Readonly Ivory

Ivory: Color = new Color(255, 255, 240)

Static Readonly Khaki

Khaki: Color = new Color(240, 230, 140)

Static Readonly Lavender

Lavender: Color = new Color(230, 230, 250)

Static Readonly LavenderBlush

LavenderBlush: Color = new Color(255, 240, 245)

Static Readonly LawnGreen

LawnGreen: Color = new Color(124, 252, 0)

Static Readonly LemonChiffon

LemonChiffon: Color = new Color(255, 250, 205)

Static Readonly LightBlue

LightBlue: Color = new Color(173, 216, 230)

Static Readonly LightCoral

LightCoral: Color = new Color(240, 128, 128)

Static Readonly LightCyan

LightCyan: Color = new Color(244, 255, 255)

Static Readonly LightGoldenrodYellow

LightGoldenrodYellow: Color = new Color(250, 250, 210)

Static Readonly LightGray

LightGray: Color = new Color(211, 211, 211)

Static Readonly LightGreen

LightGreen: Color = new Color(133, 238, 144)

Static Readonly LightPink

LightPink: Color = new Color(255, 182, 193)

Static Readonly LightSalmon

LightSalmon: Color = new Color(255, 160, 122)

Static Readonly LightSeaGreen

LightSeaGreen: Color = new Color(32, 178, 170)

Static Readonly LightSkyBlue

LightSkyBlue: Color = new Color(135, 206, 250)

Static Readonly LightSlateGray

LightSlateGray: Color = new Color(119, 136, 153)

Static Readonly LightSteelBlue

LightSteelBlue: Color = new Color(176, 196, 222)

Static Readonly LightYellow

LightYellow: Color = new Color(255, 255, 224)

Static Readonly Lime

Lime: Color = new Color(0, 255, 0)

Static Readonly LimeGreen

LimeGreen: Color = new Color(50, 205, 50)

Static Readonly Linen

Linen: Color = new Color(250, 240, 230)

Static Readonly Magenta

Magenta: Color = new Color(255, 0, 255)

Static Readonly Maroon

Maroon: Color = new Color(128, 0, 0)

Static Readonly MediumAquamarine

MediumAquamarine: Color = new Color(102, 205, 170)

Static Readonly MediumBlue

MediumBlue: Color = new Color(0, 0, 205)

Static Readonly MediumOrchid

MediumOrchid: Color = new Color(186, 85, 211)

Static Readonly MediumPurple

MediumPurple: Color = new Color(147, 112, 219)

Static Readonly MediumSeaGreen

MediumSeaGreen: Color = new Color(60, 179, 113)

Static Readonly MediumSlateBlue

MediumSlateBlue: Color = new Color(123, 104, 238)

Static Readonly MediumSpringGreen

MediumSpringGreen: Color = new Color(0, 250, 154)

Static Readonly MediumTurquoise

MediumTurquoise: Color = new Color(72, 209, 204)

Static Readonly MediumVioletRed

MediumVioletRed: Color = new Color(199, 21, 133)

Static Readonly MidnightBlue

MidnightBlue: Color = new Color(25, 25, 112)

Static Readonly MintCream

MintCream: Color = new Color(245, 255, 250)

Static Readonly MistyRose

MistyRose: Color = new Color(255, 228, 225)

Static Readonly Moccasin

Moccasin: Color = new Color(255, 228, 181)

Static Readonly NavajoWhite

NavajoWhite: Color = new Color(255, 222, 173)

Static Readonly Navy

Navy: Color = new Color(0, 0, 128)

Static Readonly OldLace

OldLace: Color = new Color(253, 245, 230)

Static Readonly Olive

Olive: Color = new Color(128, 128, 0)

Static Readonly OliveDrab

OliveDrab: Color = new Color(107, 142, 35)

Static Readonly Orange

Orange: Color = new Color(255, 165, 0)

Static Readonly OrangeRed

OrangeRed: Color = new Color(255, 69, 0)

Static Readonly Orchid

Orchid: Color = new Color(218, 11, 214)

Static Readonly PaleGoldenrod

PaleGoldenrod: Color = new Color(238, 232, 170)

Static Readonly PaleGreen

PaleGreen: Color = new Color(152, 251, 152)

Static Readonly PaleTurquoise

PaleTurquoise: Color = new Color(175, 238, 238)

Static Readonly PaleVioletRed

PaleVioletRed: Color = new Color(219, 112, 147)

Static Readonly PapayaWhip

PapayaWhip: Color = new Color(255, 239, 213)

Static Readonly PeachPuff

PeachPuff: Color = new Color(255, 218, 185)

Static Readonly Peru

Peru: Color = new Color(205, 133, 63)

Static Readonly Pink

Pink: Color = new Color(255, 192, 203)

Static Readonly Plum

Plum: Color = new Color(221, 160, 221)

Static Readonly PowderBlue

PowderBlue: Color = new Color(176, 224, 230)

Static Readonly Purple

Purple: Color = new Color(128, 0, 128)

Static Readonly Red

Red: Color = new Color(255, 0, 0)

Static Readonly RosyBrown

RosyBrown: Color = new Color(188, 143, 143)

Static Readonly RoyalBlue

RoyalBlue: Color = new Color(65, 105, 225)

Static Readonly SaddleBrown

SaddleBrown: Color = new Color(139, 69, 19)

Static Readonly Salmon

Salmon: Color = new Color(250, 128, 114)

Static Readonly SandyBrown

SandyBrown: Color = new Color(244, 164, 96)

Static Readonly SeaGreen

SeaGreen: Color = new Color(46, 139, 87)

Static Readonly Seashell

Seashell: Color = new Color(255, 245, 238)

Static Readonly Sienna

Sienna: Color = new Color(160, 82, 45)

Static Readonly Silver

Silver: Color = new Color(192, 192, 192)

Static Readonly SkyBlue

SkyBlue: Color = new Color(135, 206, 235)

Static Readonly SlateBlue

SlateBlue: Color = new Color(106, 90, 205)

Static Readonly SlateGray

SlateGray: Color = new Color(112, 128, 144)

Static Readonly Snow

Snow: Color = new Color(255, 250, 250)

Static Readonly SpringGreen

SpringGreen: Color = new Color(0, 255, 127)

Static Readonly SteelBlue

SteelBlue: Color = new Color(70, 130, 180)

Static Readonly Tan

Tan: Color = new Color(210, 180, 140)

Static Readonly Teal

Teal: Color = new Color(0, 128, 128)

Static Readonly Thistle

Thistle: Color = new Color(216, 191, 216)

Static Readonly Tomato

Tomato: Color = new Color(255, 99, 71)

Static Readonly Turquoise

Turquoise: Color = new Color(64, 224, 208)

Static Readonly Violet

Violet: Color = new Color(238, 130, 238)

Static Readonly Wheat

Wheat: Color = new Color(245, 222, 179)

Static Readonly White

White: Color = new Color(255, 255, 255)

Static Readonly WhiteSmoke

WhiteSmoke: Color = new Color(245, 245, 245)

Static Readonly Yellow

Yellow: Color = new Color(255, 255, 0)

Static Readonly YellowGreen

YellowGreen: Color = new Color(154, 205, 50)

Methods

add

  • add(other: Color, fractionOther?: number): Color

blend

  • blend(other: Color, fractionOther?: number): Color

blendPercent

  • blendPercent(other: Color, percentOther: number): Color

cssColor

  • cssColor(): string

isEqual

  • isEqual(color: Color): boolean

toGrayscale

Generated using TypeDoc