Constructors
constructor
- new Color(r: number, g: number, b: number): Color
-
Parameters
-
r: number
-
g: number
-
b: number
Properties
Static Readonly AliceBlue
Alice
Blue: Color = new Color(240, 248, 255)
Static Readonly AntiqueWhite
Antique
White: 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
Blanched
Almond: Color = new Color(255, 235, 205)
Static Readonly Blue
Blue
: Color = new Color(0, 0, 225)
Static Readonly BlueViolet
Blue
Violet: 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
Cadet
Blue: 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
Cornflower
Blue: 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
Dark
Blue: Color = new Color(0, 0, 139)
Static Readonly DarkCyan
Dark
Cyan: Color = new Color(0, 139, 139)
Static Readonly DarkGoldenrod
Dark
Goldenrod: Color = new Color(184, 134, 11)
Static Readonly DarkGray
Dark
Gray: Color = new Color(169, 169, 169)
Static Readonly DarkGreen
Dark
Green: Color = new Color(0, 100, 0)
Static Readonly DarkKhaki
Dark
Khaki: Color = new Color(189, 183, 107)
Static Readonly DarkMagenta
Dark
Magenta: Color = new Color(139, 9, 139)
Static Readonly DarkOliveGreen
Dark
OliveGreen: Color = new Color(85, 107, 47)
Static Readonly DarkOrange
Dark
Orange: Color = new Color(255, 140, 0)
Static Readonly DarkOrchid
Dark
Orchid: Color = new Color(153, 50, 204)
Static Readonly DarkRed
Dark
Red: Color = new Color(139, 0, 0)
Static Readonly DarkSalmon
Dark
Salmon: Color = new Color(233, 150, 122)
Static Readonly DarkSeaGreen
Dark
SeaGreen: Color = new Color(143, 188, 143)
Static Readonly DarkSlateBlue
Dark
SlateBlue: Color = new Color(72, 61, 129)
Static Readonly DarkSlateGray
Dark
SlateGray: Color = new Color(47, 79, 79)
Static Readonly DarkTurquoise
Dark
Turquoise: Color = new Color(0, 206, 209)
Static Readonly DarkViolet
Dark
Violet: Color = new Color(148, 0, 211)
Static Readonly DeepPink
Deep
Pink: Color = new Color(255, 20, 147)
Static Readonly DeepSkyBlue
Deep
SkyBlue: Color = new Color(0, 191, 255)
Static Readonly DimGray
Dim
Gray: Color = new Color(105, 105, 105)
Static Readonly DodgerBlue
Dodger
Blue: Color = new Color(30, 144, 255)
Static Readonly Firebrick
Firebrick
: Color = new Color(178, 34, 34)
Static Readonly FloralWhite
Floral
White: Color = new Color(255, 250, 240)
Static Readonly ForestGreen
Forest
Green: 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
Ghost
White: 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
Green
Yellow: Color = new Color(173, 255, 47)
Static Readonly Honeydew
Honeydew
: Color = new Color(240, 255, 240)
Static Readonly HotPink
Hot
Pink: Color = new Color(255, 105, 180)
Static Readonly IndianRed
Indian
Red: 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
Lavender
Blush: Color = new Color(255, 240, 245)
Static Readonly LawnGreen
Lawn
Green: Color = new Color(124, 252, 0)
Static Readonly LemonChiffon
Lemon
Chiffon: Color = new Color(255, 250, 205)
Static Readonly LightBlue
Light
Blue: Color = new Color(173, 216, 230)
Static Readonly LightCoral
Light
Coral: Color = new Color(240, 128, 128)
Static Readonly LightCyan
Light
Cyan: Color = new Color(244, 255, 255)
Static Readonly LightGoldenrodYellow
Light
GoldenrodYellow: Color = new Color(250, 250, 210)
Static Readonly LightGray
Light
Gray: Color = new Color(211, 211, 211)
Static Readonly LightGreen
Light
Green: Color = new Color(133, 238, 144)
Static Readonly LightPink
Light
Pink: Color = new Color(255, 182, 193)
Static Readonly LightSalmon
Light
Salmon: Color = new Color(255, 160, 122)
Static Readonly LightSeaGreen
Light
SeaGreen: Color = new Color(32, 178, 170)
Static Readonly LightSkyBlue
Light
SkyBlue: Color = new Color(135, 206, 250)
Static Readonly LightSlateGray
Light
SlateGray: Color = new Color(119, 136, 153)
Static Readonly LightSteelBlue
Light
SteelBlue: Color = new Color(176, 196, 222)
Static Readonly LightYellow
Light
Yellow: Color = new Color(255, 255, 224)
Static Readonly Lime
Lime
: Color = new Color(0, 255, 0)
Static Readonly LimeGreen
Lime
Green: 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
Medium
Aquamarine: Color = new Color(102, 205, 170)
Static Readonly MediumBlue
Medium
Blue: Color = new Color(0, 0, 205)
Static Readonly MediumOrchid
Medium
Orchid: Color = new Color(186, 85, 211)
Static Readonly MediumPurple
Medium
Purple: Color = new Color(147, 112, 219)
Static Readonly MediumSeaGreen
Medium
SeaGreen: Color = new Color(60, 179, 113)
Static Readonly MediumSlateBlue
Medium
SlateBlue: Color = new Color(123, 104, 238)
Static Readonly MediumSpringGreen
Medium
SpringGreen: Color = new Color(0, 250, 154)
Static Readonly MediumTurquoise
Medium
Turquoise: Color = new Color(72, 209, 204)
Static Readonly MediumVioletRed
Medium
VioletRed: Color = new Color(199, 21, 133)
Static Readonly MidnightBlue
Midnight
Blue: Color = new Color(25, 25, 112)
Static Readonly MintCream
Mint
Cream: Color = new Color(245, 255, 250)
Static Readonly MistyRose
Misty
Rose: Color = new Color(255, 228, 225)
Static Readonly Moccasin
Moccasin
: Color = new Color(255, 228, 181)
Static Readonly NavajoWhite
Navajo
White: Color = new Color(255, 222, 173)
Static Readonly Navy
Navy
: Color = new Color(0, 0, 128)
Static Readonly OldLace
Old
Lace: Color = new Color(253, 245, 230)
Static Readonly Olive
Olive
: Color = new Color(128, 128, 0)
Static Readonly OliveDrab
Olive
Drab: Color = new Color(107, 142, 35)
Static Readonly Orange
Orange
: Color = new Color(255, 165, 0)
Static Readonly OrangeRed
Orange
Red: Color = new Color(255, 69, 0)
Static Readonly Orchid
Orchid
: Color = new Color(218, 11, 214)
Static Readonly PaleGoldenrod
Pale
Goldenrod: Color = new Color(238, 232, 170)
Static Readonly PaleGreen
Pale
Green: Color = new Color(152, 251, 152)
Static Readonly PaleTurquoise
Pale
Turquoise: Color = new Color(175, 238, 238)
Static Readonly PaleVioletRed
Pale
VioletRed: Color = new Color(219, 112, 147)
Static Readonly PapayaWhip
Papaya
Whip: Color = new Color(255, 239, 213)
Static Readonly PeachPuff
Peach
Puff: 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
Powder
Blue: 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
Rosy
Brown: Color = new Color(188, 143, 143)
Static Readonly RoyalBlue
Royal
Blue: Color = new Color(65, 105, 225)
Static Readonly SaddleBrown
Saddle
Brown: Color = new Color(139, 69, 19)
Static Readonly Salmon
Salmon
: Color = new Color(250, 128, 114)
Static Readonly SandyBrown
Sandy
Brown: Color = new Color(244, 164, 96)
Static Readonly SeaGreen
Sea
Green: 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
Sky
Blue: Color = new Color(135, 206, 235)
Static Readonly SlateBlue
Slate
Blue: Color = new Color(106, 90, 205)
Static Readonly SlateGray
Slate
Gray: Color = new Color(112, 128, 144)
Static Readonly Snow
Snow
: Color = new Color(255, 250, 250)
Static Readonly SpringGreen
Spring
Green: Color = new Color(0, 255, 127)
Static Readonly SteelBlue
Steel
Blue: 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
White
Smoke: Color = new Color(245, 245, 245)
Static Readonly Yellow
Yellow
: Color = new Color(255, 255, 0)
Static Readonly YellowGreen
Yellow
Green: Color = new Color(154, 205, 50)
Methods
add
-
Parameters
-
-
Default value fractionOther: number = 1
blend
- blend(other: Color, fractionOther?: number): Color
-
Parameters
-
-
Default value fractionOther: number = 0.5
blendPercent
- blendPercent(other: Color, percentOther: number): Color
isEqual
- isEqual(color: Color): boolean
-
Parameters
Returns boolean