# Color

#### new Cesium.Color(red, green, blue, alpha)
Core/Color.js 50

  A color, specified using red, green, blue, and alpha values, which range from `0` (no intensity) to `1.0` (full intensity).

  Name | Type | Default | Description
  --- | --- | --- | ---
  `red` | Number | `1.0` | optional The red component.
  `green` | Number | `1.0` | optional The green component.
  `blue` | Number | `1.0` | optional The blue component.
  `alpha` | Number | `1.0` | optional The alpha component.

  ##### See:

  - Packable

### Members

#### staticconstantCesium.Color.ALICEBLUE : Color
Core/Color.js 946

  An immutable Color instance initialized to CSS color #F0F8FF

#### staticconstantCesium.Color.ANTIQUEWHITE : Color
Core/Color.js 955

  An immutable Color instance initialized to CSS color #FAEBD7

#### staticconstantCesium.Color.AQUA : Color
Core/Color.js 964

  An immutable Color instance initialized to CSS color #00FFFF

#### staticconstantCesium.Color.AQUAMARINE : Color
Core/Color.js 973

  An immutable Color instance initialized to CSS color #7FFFD4

#### staticconstantCesium.Color.AZURE : Color
Core/Color.js 982

  An immutable Color instance initialized to CSS color #F0FFFF

#### staticconstantCesium.Color.BEIGE : Color
Core/Color.js 991

  An immutable Color instance initialized to CSS color #F5F5DC

#### staticconstantCesium.Color.BISQUE : Color
Core/Color.js 1000

  An immutable Color instance initialized to CSS color #FFE4C4

#### staticconstantCesium.Color.BLACK : Color
Core/Color.js 1009

  An immutable Color instance initialized to CSS color #000000

#### staticconstantCesium.Color.BLANCHEDALMOND : Color
Core/Color.js 1018

  An immutable Color instance initialized to CSS color #FFEBCD

#### staticconstantCesium.Color.BLUE : Color
Core/Color.js 1027

  An immutable Color instance initialized to CSS color #0000FF

#### staticconstantCesium.Color.BLUEVIOLET : Color
Core/Color.js 1036

  An immutable Color instance initialized to CSS color #8A2BE2

#### staticconstantCesium.Color.BROWN : Color
Core/Color.js 1045

  An immutable Color instance initialized to CSS color #A52A2A

#### staticconstantCesium.Color.BURLYWOOD : Color
Core/Color.js 1054

  An immutable Color instance initialized to CSS color #DEB887

#### staticconstantCesium.Color.CADETBLUE : Color
Core/Color.js 1063

  An immutable Color instance initialized to CSS color #5F9EA0

#### staticconstantCesium.Color.CHARTREUSE : Color
Core/Color.js 1071

  An immutable Color instance initialized to CSS color #7FFF00

#### staticconstantCesium.Color.CHOCOLATE : Color
Core/Color.js 1080

  An immutable Color instance initialized to CSS color #D2691E

#### staticconstantCesium.Color.CORAL : Color
Core/Color.js 1089

  An immutable Color instance initialized to CSS color #FF7F50

#### staticconstantCesium.Color.CORNFLOWERBLUE : Color
Core/Color.js 1098

  An immutable Color instance initialized to CSS color #6495ED

#### staticconstantCesium.Color.CORNSILK : Color
Core/Color.js 1107

  An immutable Color instance initialized to CSS color #FFF8DC

#### staticconstantCesium.Color.CRIMSON : Color
Core/Color.js 1116

  An immutable Color instance initialized to CSS color #DC143C

#### staticconstantCesium.Color.CYAN : Color
Core/Color.js 1125

  An immutable Color instance initialized to CSS color #00FFFF

#### staticconstantCesium.Color.DARKBLUE : Color
Core/Color.js 1134

  An immutable Color instance initialized to CSS color #00008B

#### staticconstantCesium.Color.DARKCYAN : Color
Core/Color.js 1143

  An immutable Color instance initialized to CSS color #008B8B

#### staticconstantCesium.Color.DARKGOLDENROD : Color
Core/Color.js 1152

  An immutable Color instance initialized to CSS color #B8860B

#### staticconstantCesium.Color.DARKGRAY : Color
Core/Color.js 1161

  An immutable Color instance initialized to CSS color #A9A9A9

#### staticconstantCesium.Color.DARKGREEN : Color
Core/Color.js 1170

  An immutable Color instance initialized to CSS color #006400

#### staticconstantCesium.Color.DARKGREY : Color
Core/Color.js 1179

  An immutable Color instance initialized to CSS color #A9A9A9

#### staticconstantCesium.Color.DARKKHAKI : Color
Core/Color.js 1188

  An immutable Color instance initialized to CSS color #BDB76B

#### staticconstantCesium.Color.DARKMAGENTA : Color
Core/Color.js 1197

  An immutable Color instance initialized to CSS color #8B008B

#### staticconstantCesium.Color.DARKOLIVEGREEN : Color
Core/Color.js 1206

  An immutable Color instance initialized to CSS color #556B2F

#### staticconstantCesium.Color.DARKORANGE : Color
Core/Color.js 1215

  An immutable Color instance initialized to CSS color #FF8C00

#### staticconstantCesium.Color.DARKORCHID : Color
Core/Color.js 1224

  An immutable Color instance initialized to CSS color #9932CC

#### staticconstantCesium.Color.DARKRED : Color
Core/Color.js 1233

  An immutable Color instance initialized to CSS color #8B0000

#### staticconstantCesium.Color.DARKSALMON : Color
Core/Color.js 1242

  An immutable Color instance initialized to CSS color #E9967A

#### staticconstantCesium.Color.DARKSEAGREEN : Color
Core/Color.js 1251

  An immutable Color instance initialized to CSS color #8FBC8F

#### staticconstantCesium.Color.DARKSLATEBLUE : Color
Core/Color.js 1260

  An immutable Color instance initialized to CSS color #483D8B

#### staticconstantCesium.Color.DARKSLATEGRAY : Color
Core/Color.js 1269

  An immutable Color instance initialized to CSS color #2F4F4F

#### staticconstantCesium.Color.DARKSLATEGREY : Color
Core/Color.js 1278

  An immutable Color instance initialized to CSS color #2F4F4F

#### staticconstantCesium.Color.DARKTURQUOISE : Color
Core/Color.js 1287

  An immutable Color instance initialized to CSS color #00CED1

#### staticconstantCesium.Color.DARKVIOLET : Color
Core/Color.js 1296

  An immutable Color instance initialized to CSS color #9400D3

#### staticconstantCesium.Color.DEEPPINK : Color
Core/Color.js 1305

  An immutable Color instance initialized to CSS color #FF1493

#### staticconstantCesium.Color.DEEPSKYBLUE : Color
Core/Color.js 1314

  An immutable Color instance initialized to CSS color #00BFFF

#### staticconstantCesium.Color.DIMGRAY : Color
Core/Color.js 1323

  An immutable Color instance initialized to CSS color #696969

#### staticconstantCesium.Color.DIMGREY : Color
Core/Color.js 1332

  An immutable Color instance initialized to CSS color #696969

#### staticconstantCesium.Color.DODGERBLUE : Color
Core/Color.js 1341

  An immutable Color instance initialized to CSS color #1E90FF

#### staticconstantCesium.Color.FIREBRICK : Color
Core/Color.js 1350

  An immutable Color instance initialized to CSS color #B22222

#### staticconstantCesium.Color.FLORALWHITE : Color
Core/Color.js 1359

  An immutable Color instance initialized to CSS color #FFFAF0

#### staticconstantCesium.Color.FORESTGREEN : Color
Core/Color.js 1368

  An immutable Color instance initialized to CSS color #228B22

#### staticconstantCesium.Color.FUSCHIA : Color
Core/Color.js 1377

  An immutable Color instance initialized to CSS color #FF00FF

#### staticconstantCesium.Color.GAINSBORO : Color
Core/Color.js 1386

  An immutable Color instance initialized to CSS color #DCDCDC

#### staticconstantCesium.Color.GHOSTWHITE : Color
Core/Color.js 1395

  An immutable Color instance initialized to CSS color #F8F8FF

#### staticconstantCesium.Color.GOLD : Color
Core/Color.js 1404

  An immutable Color instance initialized to CSS color #FFD700

#### staticconstantCesium.Color.GOLDENROD : Color
Core/Color.js 1413

  An immutable Color instance initialized to CSS color #DAA520

#### staticconstantCesium.Color.GRAY : Color
Core/Color.js 1422

  An immutable Color instance initialized to CSS color #808080

#### staticconstantCesium.Color.GREEN : Color
Core/Color.js 1431

  An immutable Color instance initialized to CSS color #008000

#### staticconstantCesium.Color.GREENYELLOW : Color
Core/Color.js 1440

  An immutable Color instance initialized to CSS color #ADFF2F

#### staticconstantCesium.Color.GREY : Color
Core/Color.js 1449

  An immutable Color instance initialized to CSS color #808080

#### staticconstantCesium.Color.HONEYDEW : Color
Core/Color.js 1458

  An immutable Color instance initialized to CSS color #F0FFF0

#### staticconstantCesium.Color.HOTPINK : Color
Core/Color.js 1467

  An immutable Color instance initialized to CSS color #FF69B4

#### staticconstantCesium.Color.INDIANRED : Color
Core/Color.js 1476

  An immutable Color instance initialized to CSS color #CD5C5C

#### staticconstantCesium.Color.INDIGO : Color
Core/Color.js 1485

  An immutable Color instance initialized to CSS color #4B0082

#### staticconstantCesium.Color.IVORY : Color
Core/Color.js 1494

  An immutable Color instance initialized to CSS color #FFFFF0

#### staticconstantCesium.Color.KHAKI : Color
Core/Color.js 1503

  An immutable Color instance initialized to CSS color #F0E68C

#### staticconstantCesium.Color.LAVENDAR_BLUSH : Color
Core/Color.js 1521

  An immutable Color instance initialized to CSS color #FFF0F5

#### staticconstantCesium.Color.LAVENDER : Color
Core/Color.js 1512

  An immutable Color instance initialized to CSS color #E6E6FA

#### staticconstantCesium.Color.LAWNGREEN : Color
Core/Color.js 1530

  An immutable Color instance initialized to CSS color #7CFC00

#### staticconstantCesium.Color.LEMONCHIFFON : Color
Core/Color.js 1539

  An immutable Color instance initialized to CSS color #FFFACD

#### staticconstantCesium.Color.LIGHTBLUE : Color
Core/Color.js 1548

  An immutable Color instance initialized to CSS color #ADD8E6

#### staticconstantCesium.Color.LIGHTCORAL : Color
Core/Color.js 1557

  An immutable Color instance initialized to CSS color #F08080

#### staticconstantCesium.Color.LIGHTCYAN : Color
Core/Color.js 1566

  An immutable Color instance initialized to CSS color #E0FFFF

#### staticconstantCesium.Color.LIGHTGOLDENRODYELLOW : Color
Core/Color.js 1575

  An immutable Color instance initialized to CSS color #FAFAD2

#### staticconstantCesium.Color.LIGHTGRAY : Color
Core/Color.js 1584

  An immutable Color instance initialized to CSS color #D3D3D3

#### staticconstantCesium.Color.LIGHTGREEN : Color
Core/Color.js 1593

  An immutable Color instance initialized to CSS color #90EE90

#### staticconstantCesium.Color.LIGHTGREY : Color
Core/Color.js 1602

  An immutable Color instance initialized to CSS color #D3D3D3

#### staticconstantCesium.Color.LIGHTPINK : Color
Core/Color.js 1611

  An immutable Color instance initialized to CSS color #FFB6C1

#### staticconstantCesium.Color.LIGHTSEAGREEN : Color
Core/Color.js 1620

  An immutable Color instance initialized to CSS color #20B2AA

#### staticconstantCesium.Color.LIGHTSKYBLUE : Color
Core/Color.js 1629

  An immutable Color instance initialized to CSS color #87CEFA

#### staticconstantCesium.Color.LIGHTSLATEGRAY : Color
Core/Color.js 1638

  An immutable Color instance initialized to CSS color #778899

#### staticconstantCesium.Color.LIGHTSLATEGREY : Color
Core/Color.js 1647

  An immutable Color instance initialized to CSS color #778899

#### staticconstantCesium.Color.LIGHTSTEELBLUE : Color
Core/Color.js 1656

  An immutable Color instance initialized to CSS color #B0C4DE

#### staticconstantCesium.Color.LIGHTYELLOW : Color
Core/Color.js 1665

  An immutable Color instance initialized to CSS color #FFFFE0

#### staticconstantCesium.Color.LIME : Color
Core/Color.js 1674

  An immutable Color instance initialized to CSS color #00FF00

#### staticconstantCesium.Color.LIMEGREEN : Color
Core/Color.js 1683

  An immutable Color instance initialized to CSS color #32CD32

#### staticconstantCesium.Color.LINEN : Color
Core/Color.js 1692

  An immutable Color instance initialized to CSS color #FAF0E6

#### staticconstantCesium.Color.MAGENTA : Color
Core/Color.js 1701

  An immutable Color instance initialized to CSS color #FF00FF

#### staticconstantCesium.Color.MAROON : Color
Core/Color.js 1710

  An immutable Color instance initialized to CSS color #800000

#### staticconstantCesium.Color.MEDIUMAQUAMARINE : Color
Core/Color.js 1719

  An immutable Color instance initialized to CSS color #66CDAA

#### staticconstantCesium.Color.MEDIUMBLUE : Color
Core/Color.js 1728

  An immutable Color instance initialized to CSS color #0000CD

#### staticconstantCesium.Color.MEDIUMORCHID : Color
Core/Color.js 1737

  An immutable Color instance initialized to CSS color #BA55D3

#### staticconstantCesium.Color.MEDIUMPURPLE : Color
Core/Color.js 1746

  An immutable Color instance initialized to CSS color #9370DB

#### staticconstantCesium.Color.MEDIUMSEAGREEN : Color
Core/Color.js 1755

  An immutable Color instance initialized to CSS color #3CB371

#### staticconstantCesium.Color.MEDIUMSLATEBLUE : Color
Core/Color.js 1764

  An immutable Color instance initialized to CSS color #7B68EE

#### staticconstantCesium.Color.MEDIUMSPRINGGREEN : Color
Core/Color.js 1773

  An immutable Color instance initialized to CSS color #00FA9A

#### staticconstantCesium.Color.MEDIUMTURQUOISE : Color
Core/Color.js 1782

  An immutable Color instance initialized to CSS color #48D1CC

#### staticconstantCesium.Color.MEDIUMVIOLETRED : Color
Core/Color.js 1791

  An immutable Color instance initialized to CSS color #C71585

#### staticconstantCesium.Color.MIDNIGHTBLUE : Color
Core/Color.js 1800

  An immutable Color instance initialized to CSS color #191970

#### staticconstantCesium.Color.MINTCREAM : Color
Core/Color.js 1809

  An immutable Color instance initialized to CSS color #F5FFFA

#### staticconstantCesium.Color.MISTYROSE : Color
Core/Color.js 1818

  An immutable Color instance initialized to CSS color #FFE4E1

#### staticconstantCesium.Color.MOCCASIN : Color
Core/Color.js 1827

  An immutable Color instance initialized to CSS color #FFE4B5

#### staticconstantCesium.Color.NAVAJOWHITE : Color
Core/Color.js 1836

  An immutable Color instance initialized to CSS color #FFDEAD

#### staticconstantCesium.Color.NAVY : Color
Core/Color.js 1845

  An immutable Color instance initialized to CSS color #000080

#### staticconstantCesium.Color.OLDLACE : Color
Core/Color.js 1854

  An immutable Color instance initialized to CSS color #FDF5E6

#### staticconstantCesium.Color.OLIVE : Color
Core/Color.js 1863

  An immutable Color instance initialized to CSS color #808000

#### staticconstantCesium.Color.OLIVEDRAB : Color
Core/Color.js 1872

  An immutable Color instance initialized to CSS color #6B8E23

#### staticconstantCesium.Color.ORANGE : Color
Core/Color.js 1881

  An immutable Color instance initialized to CSS color #FFA500

#### staticconstantCesium.Color.ORANGERED : Color
Core/Color.js 1890

  An immutable Color instance initialized to CSS color #FF4500

#### staticconstantCesium.Color.ORCHID : Color
Core/Color.js 1899

  An immutable Color instance initialized to CSS color #DA70D6

#### staticCesium.Color.packedLength : Number
Core/Color.js 435

  The number of elements used to pack the object into an array.

#### staticconstantCesium.Color.PALEGOLDENROD : Color
Core/Color.js 1908

  An immutable Color instance initialized to CSS color #EEE8AA

#### staticconstantCesium.Color.PALEGREEN : Color
Core/Color.js 1917

  An immutable Color instance initialized to CSS color #98FB98

#### staticconstantCesium.Color.PALETURQUOISE : Color
Core/Color.js 1926

  An immutable Color instance initialized to CSS color #AFEEEE

#### staticconstantCesium.Color.PALEVIOLETRED : Color
Core/Color.js 1935

  An immutable Color instance initialized to CSS color #DB7093

#### staticconstantCesium.Color.PAPAYAWHIP : Color
Core/Color.js 1944

  An immutable Color instance initialized to CSS color #FFEFD5

#### staticconstantCesium.Color.PEACHPUFF : Color
Core/Color.js 1953

  An immutable Color instance initialized to CSS color #FFDAB9

#### staticconstantCesium.Color.PERU : Color
Core/Color.js 1962

  An immutable Color instance initialized to CSS color #CD853F

#### staticconstantCesium.Color.PINK : Color
Core/Color.js 1971

  An immutable Color instance initialized to CSS color #FFC0CB

#### staticconstantCesium.Color.PLUM : Color
Core/Color.js 1980

  An immutable Color instance initialized to CSS color #DDA0DD

#### staticconstantCesium.Color.POWDERBLUE : Color
Core/Color.js 1989

  An immutable Color instance initialized to CSS color #B0E0E6

#### staticconstantCesium.Color.PURPLE : Color
Core/Color.js 1998

  An immutable Color instance initialized to CSS color #800080

#### staticconstantCesium.Color.RED : Color
Core/Color.js 2007

  An immutable Color instance initialized to CSS color #FF0000

#### staticconstantCesium.Color.ROSYBROWN : Color
Core/Color.js 2016

  An immutable Color instance initialized to CSS color #BC8F8F

#### staticconstantCesium.Color.ROYALBLUE : Color
Core/Color.js 2025

  An immutable Color instance initialized to CSS color #4169E1

#### staticconstantCesium.Color.SADDLEBROWN : Color
Core/Color.js 2034

  An immutable Color instance initialized to CSS color #8B4513

#### staticconstantCesium.Color.SALMON : Color
Core/Color.js 2043

  An immutable Color instance initialized to CSS color #FA8072

#### staticconstantCesium.Color.SANDYBROWN : Color
Core/Color.js 2052

  An immutable Color instance initialized to CSS color #F4A460

#### staticconstantCesium.Color.SEAGREEN : Color
Core/Color.js 2061

  An immutable Color instance initialized to CSS color #2E8B57

#### staticconstantCesium.Color.SEASHELL : Color
Core/Color.js 2070

  An immutable Color instance initialized to CSS color #FFF5EE

#### staticconstantCesium.Color.SIENNA : Color
Core/Color.js 2079

  An immutable Color instance initialized to CSS color #A0522D

#### staticconstantCesium.Color.SILVER : Color
Core/Color.js 2088

  An immutable Color instance initialized to CSS color #C0C0C0

#### staticconstantCesium.Color.SKYBLUE : Color
Core/Color.js 2097

  An immutable Color instance initialized to CSS color #87CEEB

#### staticconstantCesium.Color.SLATEBLUE : Color
Core/Color.js 2106

  An immutable Color instance initialized to CSS color #6A5ACD

#### staticconstantCesium.Color.SLATEGRAY : Color
Core/Color.js 2115

  An immutable Color instance initialized to CSS color #708090

#### staticconstantCesium.Color.SLATEGREY : Color
Core/Color.js 2124

  An immutable Color instance initialized to CSS color #708090

#### staticconstantCesium.Color.SNOW : Color
Core/Color.js 2133

  An immutable Color instance initialized to CSS color #FFFAFA

#### staticconstantCesium.Color.SPRINGGREEN : Color
Core/Color.js 2142

  An immutable Color instance initialized to CSS color #00FF7F

#### staticconstantCesium.Color.STEELBLUE : Color
Core/Color.js 2151

  An immutable Color instance initialized to CSS color #4682B4

#### staticconstantCesium.Color.TAN : Color
Core/Color.js 2160

  An immutable Color instance initialized to CSS color #D2B48C

#### staticconstantCesium.Color.TEAL : Color
Core/Color.js 2169

  An immutable Color instance initialized to CSS color #008080

#### staticconstantCesium.Color.THISTLE : Color
Core/Color.js 2178

  An immutable Color instance initialized to CSS color #D8BFD8

#### staticconstantCesium.Color.TOMATO : Color
Core/Color.js 2187

  An immutable Color instance initialized to CSS color #FF6347

#### staticconstantCesium.Color.TRANSPARENT : Color
Core/Color.js 2259

  An immutable Color instance initialized to CSS transparent.

#### staticconstantCesium.Color.TURQUOISE : Color
Core/Color.js 2196

  An immutable Color instance initialized to CSS color #40E0D0

#### staticconstantCesium.Color.VIOLET : Color
Core/Color.js 2205

  An immutable Color instance initialized to CSS color #EE82EE

#### staticconstantCesium.Color.WHEAT : Color
Core/Color.js 2214

  An immutable Color instance initialized to CSS color #F5DEB3

#### staticconstantCesium.Color.WHITE : Color
Core/Color.js 2223

  An immutable Color instance initialized to CSS color #FFFFFF

#### staticconstantCesium.Color.WHITESMOKE : Color
Core/Color.js 2232

  An immutable Color instance initialized to CSS color #F5F5F5

#### staticconstantCesium.Color.YELLOW : Color
Core/Color.js 2241

  An immutable Color instance initialized to CSS color #FFFF00

#### staticconstantCesium.Color.YELLOWGREEN : Color
Core/Color.js 2250

  An immutable Color instance initialized to CSS color #9ACD32

#### alpha : Number
Core/Color.js 74

  The alpha component.
  Default Value: `1.0`

#### blue : Number
Core/Color.js 68

  The blue component.
  Default Value: `1.0`

#### green : Number
Core/Color.js 62

  The green component.
  Default Value: `1.0`

#### red : Number
Core/Color.js 56

  The red component.
  Default Value: `1.0`

### Methods

#### staticCesium.Color.add(left, right, result) → Color
Core/Color.js 751

  Computes the componentwise sum of two Colors.

  Name | Type | Description
  --- | --- | ---
  `left` | Color | The first Color.
  `right` | Color | The second Color.
  `result` | Color | The object onto which to store the result.

  ##### Returns:

  The modified result parameter.

#### staticCesium.Color.byteToFloat(number) → Number
Core/Color.js 498

  Converts a 'byte' color component in the range of 0 to 255 into a 'float' color component in the range of 0 to 1.0.

  Name | Type | Description
  --- | --- | ---
  `number` | Number | The number to be converted.

  ##### Returns:

  The converted number.

#### staticCesium.Color.clone(color, result) → Color
Core/Color.js 520

  Duplicates a Color.

  Name | Type | Description
  --- | --- | ---
  `color` | Color | The Color to duplicate.
  `result` | Color | optional The object to store the result in, if undefined a new instance will be created.

  ##### Returns:

  The modified result parameter or a new instance if result was undefined. (Returns undefined if color is undefined)

#### staticCesium.Color.divide(left, right, result) → Color
Core/Color.js 835

  Computes the componentwise quotient of two Colors.

  Name | Type | Description
  --- | --- | ---
  `left` | Color | The first Color.
  `right` | Color | The second Color.
  `result` | Color | The object onto which to store the result.

  ##### Returns:

  The modified result parameter.

#### staticCesium.Color.divideByScalar(color, scalar, result) → Color
Core/Color.js 919

  Divides the provided Color componentwise by the provided scalar.

  Name | Type | Description
  --- | --- | ---
  `color` | Color | The Color to be divided.
  `scalar` | Number | The scalar to divide with.
  `result` | Color | The object onto which to store the result.

  ##### Returns:

  The modified result parameter.

#### staticCesium.Color.equals(left, right) → Boolean
Core/Color.js 541

  Returns true if the first Color equals the second color.

  Name | Type | Description
  --- | --- | ---
  `left` | Color | The first Color to compare for equality.
  `right` | Color | The second Color to compare for equality.

  ##### Returns:

  `true` if the Colors are equal; otherwise, `false`.

#### staticCesium.Color.floatToByte(number) → Number
Core/Color.js 509

  Converts a 'float' color component in the range of 0 to 1.0 into a 'byte' color component in the range of 0 to 255.

  Name | Type | Description
  --- | --- | ---
  `number` | Number | The number to be converted.

  ##### Returns:

  The converted number.

#### staticCesium.Color.fromAlpha(color, alpha, result) → Color
Core/Color.js 142

  Creates a new Color that has the same red, green, and blue components of the specified color, but with the specified alpha value.

  Name | Type | Description
  --- | --- | ---
  `color` | Color | The base color
  `alpha` | Number | The new alpha component.
  `result` | Color | optional The object onto which to store the result.

  ##### Returns:

  The modified result parameter or a new Color instance if one was not provided.

  ##### Example:

      var translucentRed = Cesium.Color.fromAlpha(Cesium.Color.RED, 0.9);

#### staticCesium.Color.fromBytes(red, green, blue, alpha, result) → Color
Core/Color.js 114

  Creates a new Color specified using red, green, blue, and alpha values that are in the range of 0 to 255, converting them internally to a range of 0.0 to 1.0.

  Name | Type | Default | Description
  --- | --- | --- | ---
  `red` | Number | `255` | optional The red component.
  `green` | Number | `255` | optional The green component.
  `blue` | Number | `255` | optional The blue component.
  `alpha` | Number | `255` | optional The alpha component.
  `result` | Color |  | optional The object onto which to store the result.

  ##### Returns:

  The modified result parameter or a new Color instance if one was not provided.

#### staticCesium.Color.fromCartesian4(cartesian, result) → Color
Core/Color.js 85

  Creates a Color instance from a `Cartesian4`. `x`, `y`, `z`, and `w` map to `red`, `green`, `blue`, and `alpha`, respectively.

  Name | Type | Description
  --- | --- | ---
  `cartesian` | Cartesian4 | The source cartesian.
  `result` | Color | optional The object onto which to store the result.

  ##### Returns:

  The modified result parameter or a new Color instance if one was not provided.

#### staticCesium.Color.fromCssColorString(color, result) → Color
Core/Color.js 375

  Creates a Color instance from a CSS color value.

  Name | Type | Description
  --- | --- | ---
  `color` | String | The CSS color value in #rgb, #rrggbb, rgb(), rgba(), hsl(), or hsla() format.
  `result` | Color | optional The object to store the result in, if undefined a new instance will be created.

  ##### Returns:

  The color object, or undefined if the string was not a valid CSS color.

  ##### Example:

      var cesiumBlue = Cesium.Color.fromCssColorString('#67ADDF');
      var green = Cesium.Color.fromCssColorString('green');

  ##### See:

  - CSS color values

#### staticCesium.Color.fromHsl(hue, saturation, lightness, alpha, result) → Color
Core/Color.js 203

  Creates a Color instance from hue, saturation, and lightness.

  Name | Type | Default | Description
  --- | --- | --- | ---
  `hue` | Number | `0` | optional The hue angle 0...1
  `saturation` | Number | `0` | optional The saturation value 0...1
  `lightness` | Number | `0` | optional The lightness value 0...1
  `alpha` | Number | `1.0` | optional The alpha component 0...1
  `result` | Color |  | optional The object to store the result in, if undefined a new instance will be created.

  ##### Returns:

  The color object.

  ##### See:

  - CSS color values

#### staticCesium.Color.fromRandom(options, result) → Color
Core/Color.js 282

  Creates a random color using the provided options. For reproducible random colors, you should call `CesiumMath#setRandomNumberSeed` once at the beginning of your application.

  Name | Type | Description
  --- | --- | ---

  `options`

  Object

  optional Object with the following properties:

  Name | Type | Default | Description
  --- | --- | --- | ---
  `red` | Number |  | optional If specified, the red component to use instead of a randomized value.
  `minimumRed` | Number | `0.0` | optional The maximum red value to generate if none was specified.
  `maximumRed` | Number | `1.0` | optional The minimum red value to generate if none was specified.
  `green` | Number |  | optional If specified, the green component to use instead of a randomized value.
  `minimumGreen` | Number | `0.0` | optional The maximum green value to generate if none was specified.
  `maximumGreen` | Number | `1.0` | optional The minimum green value to generate if none was specified.
  `blue` | Number |  | optional If specified, the blue component to use instead of a randomized value.
  `minimumBlue` | Number | `0.0` | optional The maximum blue value to generate if none was specified.
  `maximumBlue` | Number | `1.0` | optional The minimum blue value to generate if none was specified.
  `alpha` | Number |  | optional If specified, the alpha component to use instead of a randomized value.
  `minimumAlpha` | Number | `0.0` | optional The maximum alpha value to generate if none was specified.
  `maximumAlpha` | Number | `1.0` | optional The minimum alpha value to generate if none was specified.

  `result` | Color | optional The object to store the result in, if undefined a new instance will be created.

  ##### Returns:

  The modified result parameter or a new instance if result was undefined.

  ##### Throws:

  - DeveloperError : minimumRed must be less than or equal to maximumRed.
  - DeveloperError : minimumGreen must be less than or equal to maximumGreen.
  - DeveloperError : minimumBlue must be less than or equal to maximumBlue.
  - DeveloperError : minimumAlpha must be less than or equal to maximumAlpha.

  ##### Example:

      //Create a completely random color
      var color = Cesium.Color.fromRandom();

      //Create a random shade of yellow.
      var color = Cesium.Color.fromRandom({
          red : 1.0,
          green : 1.0,
          alpha : 1.0
      });

      //Create a random bright color.
      var color = Cesium.Color.fromRandom({
          minimumRed : 0.75,
          minimumGreen : 0.75,
          minimumBlue : 0.75,
          alpha : 1.0
      });

#### staticCesium.Color.fromRgba(rgba, result) → Color
Core/Color.js 185

  Creates a new Color from a single numeric unsigned 32-bit RGBA value, using the endianness of the system.

  Name | Type | Description
  --- | --- | ---
  `rgba` | Number | A single numeric unsigned 32-bit RGBA value.
  `result` | Color | optional The object to store the result in, if undefined a new instance will be created.

  ##### Returns:

  The color object.

  ##### Example:

      var color = Cesium.Color.fromRgba(0x67ADDFFF);

  ##### See:

  - Color#toRgba

#### staticCesium.Color.mod(left, right, result) → Color
Core/Color.js 863

  Computes the componentwise modulus of two Colors.

  Name | Type | Description
  --- | --- | ---
  `left` | Color | The first Color.
  `right` | Color | The second Color.
  `result` | Color | The object onto which to store the result.

  ##### Returns:

  The modified result parameter.

#### staticCesium.Color.multiply(left, right, result) → Color
Core/Color.js 807

  Computes the componentwise product of two Colors.

  Name | Type | Description
  --- | --- | ---
  `left` | Color | The first Color.
  `right` | Color | The second Color.
  `result` | Color | The object onto which to store the result.

  ##### Returns:

  The modified result parameter.

#### staticCesium.Color.multiplyByScalar(color, scalar, result) → Color
Core/Color.js 891

  Multiplies the provided Color componentwise by the provided scalar.

  Name | Type | Description
  --- | --- | ---
  `color` | Color | The Color to be scaled.
  `scalar` | Number | The scalar to multiply with.
  `result` | Color | The object onto which to store the result.

  ##### Returns:

  The modified result parameter.

#### staticCesium.Color.pack(value, array, startingIndex) → Array.<Number>
Core/Color.js 446

  Stores the provided instance into the provided array.

  Name | Type | Default | Description
  --- | --- | --- | ---
  `value` | Color |  | The value to pack.
  `array` | Array.<Number> |  | The array to pack into.
  `startingIndex` | Number | `0` | optional The index into the array at which to start packing the elements.

  ##### Returns:

  The array that was packed into

#### staticCesium.Color.subtract(left, right, result) → Color
Core/Color.js 779

  Computes the componentwise difference of two Colors.

  Name | Type | Description
  --- | --- | ---
  `left` | Color | The first Color.
  `right` | Color | The second Color.
  `result` | Color | The object onto which to store the result.

  ##### Returns:

  The modified result parameter.

#### staticCesium.Color.unpack(array, startingIndex, result) → Color
Core/Color.js 473

  Retrieves an instance from a packed array.

  Name | Type | Default | Description
  --- | --- | --- | ---
  `array` | Array.<Number> |  | The packed array.
  `startingIndex` | Number | `0` | optional The starting index of the element to be unpacked.
  `result` | Color |  | optional The object into which to store the result.

  ##### Returns:

  The modified result parameter or a new Color instance if one was not provided.

#### brighten(magnitude, result) → Color
Core/Color.js 677

  Brightens this color by the provided magnitude.

  Name | Type | Description
  --- | --- | ---
  `magnitude` | Number | A positive number indicating the amount to brighten.
  `result` | Color | The object onto which to store the result.

  ##### Returns:

  The modified result parameter.

  ##### Example:

      var brightBlue = Cesium.Color.BLUE.brighten(0.5, new Cesium.Color());

#### clone(result) → Color
Core/Color.js 567

  Returns a duplicate of a Color instance.

  Name | Type | Description
  --- | --- | ---
  `result` | Color | optional The object to store the result in, if undefined a new instance will be created.

  ##### Returns:

  The modified result parameter or a new instance if result was undefined.

#### darken(magnitude, result) → Color
Core/Color.js 708

  Darkens this color by the provided magnitude.

  Name | Type | Description
  --- | --- | ---
  `magnitude` | Number | A positive number indicating the amount to darken.
  `result` | Color | The object onto which to store the result.

  ##### Returns:

  The modified result parameter.

  ##### Example:

      var darkBlue = Cesium.Color.BLUE.darken(0.5, new Cesium.Color());

#### equals(other) → Boolean
Core/Color.js 577

  Returns true if this Color equals other.

  Name | Type | Description
  --- | --- | ---
  `other` | Color | The Color to compare for equality.

  ##### Returns:

  `true` if the Colors are equal; otherwise, `false`.

#### equalsEpsilon(other, epsilon) → Boolean
Core/Color.js 588

  Returns `true` if this Color equals other componentwise within the specified epsilon.

  Name | Type | Default | Description
  --- | --- | --- | ---
  `other` | Color |  | The Color to compare for equality.
  `epsilon` | Number | `0.0` | optional The epsilon to use for equality testing.

  ##### Returns:

  `true` if the Colors are equal within the specified epsilon; otherwise, `false`.

#### toBytes(result) → Array.<Number>
Core/Color.js 630

  Converts this color to an array of red, green, blue, and alpha values that are in the range of 0 to 255.

  Name | Type | Description
  --- | --- | ---
  `result` | Array.<Number> | optional The array to store the result in, if undefined a new instance will be created.

  ##### Returns:

  The modified result parameter or a new instance if result was undefined.

#### toCssColorString() → String
Core/Color.js 613

  Creates a string containing the CSS color value for this color.

  ##### Returns:

  The CSS equivalent of this color.

  ##### See:

  - CSS RGB or RGBA color values

#### toRgba() → Number
Core/Color.js 658

  Converts this color to a single numeric unsigned 32-bit RGBA value, using the endianness of the system.

  ##### Returns:

  A single numeric unsigned 32-bit RGBA value.

  ##### Example:

      var rgba = Cesium.Color.BLUE.toRgba();

  ##### See:

  - Color.fromRgba

#### toString() → String
Core/Color.js 602

  Creates a string representing this Color in the format '(red, green, blue, alpha)'.

  ##### Returns:

  A string representing this Color in the format '(red, green, blue, alpha)'.

#### withAlpha(alpha, result) → Color
Core/Color.js 739

  Creates a new Color that has the same red, green, and blue components as this Color, but with the specified alpha value.

  Name | Type | Description
  --- | --- | ---
  `alpha` | Number | The new alpha component.
  `result` | Color | optional The object onto which to store the result.

  ##### Returns:

  The modified result parameter or a new Color instance if one was not provided.

  ##### Example:

      var translucentRed = Cesium.Color.RED.withAlpha(0.9);