# 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

#### static constantCesium.Color.ALICEBLUE : Color
Core/Color.js 724

  An immutable Color instance initialized to CSS color #F0F8FF

#### static constantCesium.Color.ANTIQUEWHITE : Color
Core/Color.js 733

  An immutable Color instance initialized to CSS color #FAEBD7

#### static constantCesium.Color.AQUA : Color
Core/Color.js 742

  An immutable Color instance initialized to CSS color #00FFFF

#### static constantCesium.Color.AQUAMARINE : Color
Core/Color.js 751

  An immutable Color instance initialized to CSS color #7FFFD4

#### static constantCesium.Color.AZURE : Color
Core/Color.js 760

  An immutable Color instance initialized to CSS color #F0FFFF

#### static constantCesium.Color.BEIGE : Color
Core/Color.js 769

  An immutable Color instance initialized to CSS color #F5F5DC

#### static constantCesium.Color.BISQUE : Color
Core/Color.js 778

  An immutable Color instance initialized to CSS color #FFE4C4

#### static constantCesium.Color.BLACK : Color
Core/Color.js 787

  An immutable Color instance initialized to CSS color #000000

#### static constantCesium.Color.BLANCHEDALMOND : Color
Core/Color.js 796

  An immutable Color instance initialized to CSS color #FFEBCD

#### static constantCesium.Color.BLUE : Color
Core/Color.js 805

  An immutable Color instance initialized to CSS color #0000FF

#### static constantCesium.Color.BLUEVIOLET : Color
Core/Color.js 814

  An immutable Color instance initialized to CSS color #8A2BE2

#### static constantCesium.Color.BROWN : Color
Core/Color.js 823

  An immutable Color instance initialized to CSS color #A52A2A

#### static constantCesium.Color.BURLYWOOD : Color
Core/Color.js 832

  An immutable Color instance initialized to CSS color #DEB887

#### static constantCesium.Color.CADETBLUE : Color
Core/Color.js 841

  An immutable Color instance initialized to CSS color #5F9EA0

#### static constantCesium.Color.CHARTREUSE : Color
Core/Color.js 849

  An immutable Color instance initialized to CSS color #7FFF00

#### static constantCesium.Color.CHOCOLATE : Color
Core/Color.js 858

  An immutable Color instance initialized to CSS color #D2691E

#### static constantCesium.Color.CORAL : Color
Core/Color.js 867

  An immutable Color instance initialized to CSS color #FF7F50

#### static constantCesium.Color.CORNFLOWERBLUE : Color
Core/Color.js 876

  An immutable Color instance initialized to CSS color #6495ED

#### static constantCesium.Color.CORNSILK : Color
Core/Color.js 885

  An immutable Color instance initialized to CSS color #FFF8DC

#### static constantCesium.Color.CRIMSON : Color
Core/Color.js 894

  An immutable Color instance initialized to CSS color #DC143C

#### static constantCesium.Color.CYAN : Color
Core/Color.js 903

  An immutable Color instance initialized to CSS color #00FFFF

#### static constantCesium.Color.DARKBLUE : Color
Core/Color.js 912

  An immutable Color instance initialized to CSS color #00008B

#### static constantCesium.Color.DARKCYAN : Color
Core/Color.js 921

  An immutable Color instance initialized to CSS color #008B8B

#### static constantCesium.Color.DARKGOLDENROD : Color
Core/Color.js 930

  An immutable Color instance initialized to CSS color #B8860B

#### static constantCesium.Color.DARKGRAY : Color
Core/Color.js 939

  An immutable Color instance initialized to CSS color #A9A9A9

#### static constantCesium.Color.DARKGREEN : Color
Core/Color.js 948

  An immutable Color instance initialized to CSS color #006400

#### static constantCesium.Color.DARKGREY : Color
Core/Color.js 957

  An immutable Color instance initialized to CSS color #A9A9A9

#### static constantCesium.Color.DARKKHAKI : Color
Core/Color.js 966

  An immutable Color instance initialized to CSS color #BDB76B

#### static constantCesium.Color.DARKMAGENTA : Color
Core/Color.js 975

  An immutable Color instance initialized to CSS color #8B008B

#### static constantCesium.Color.DARKOLIVEGREEN : Color
Core/Color.js 984

  An immutable Color instance initialized to CSS color #556B2F

#### static constantCesium.Color.DARKORANGE : Color
Core/Color.js 993

  An immutable Color instance initialized to CSS color #FF8C00

#### static constantCesium.Color.DARKORCHID : Color
Core/Color.js 1002

  An immutable Color instance initialized to CSS color #9932CC

#### static constantCesium.Color.DARKRED : Color
Core/Color.js 1011

  An immutable Color instance initialized to CSS color #8B0000

#### static constantCesium.Color.DARKSALMON : Color
Core/Color.js 1020

  An immutable Color instance initialized to CSS color #E9967A

#### static constantCesium.Color.DARKSEAGREEN : Color
Core/Color.js 1029

  An immutable Color instance initialized to CSS color #8FBC8F

#### static constantCesium.Color.DARKSLATEBLUE : Color
Core/Color.js 1038

  An immutable Color instance initialized to CSS color #483D8B

#### static constantCesium.Color.DARKSLATEGRAY : Color
Core/Color.js 1047

  An immutable Color instance initialized to CSS color #2F4F4F

#### static constantCesium.Color.DARKSLATEGREY : Color
Core/Color.js 1056

  An immutable Color instance initialized to CSS color #2F4F4F

#### static constantCesium.Color.DARKTURQUOISE : Color
Core/Color.js 1065

  An immutable Color instance initialized to CSS color #00CED1

#### static constantCesium.Color.DARKVIOLET : Color
Core/Color.js 1074

  An immutable Color instance initialized to CSS color #9400D3

#### static constantCesium.Color.DEEPPINK : Color
Core/Color.js 1083

  An immutable Color instance initialized to CSS color #FF1493

#### static constantCesium.Color.DEEPSKYBLUE : Color
Core/Color.js 1092

  An immutable Color instance initialized to CSS color #00BFFF

#### static constantCesium.Color.DIMGRAY : Color
Core/Color.js 1101

  An immutable Color instance initialized to CSS color #696969

#### static constantCesium.Color.DIMGREY : Color
Core/Color.js 1110

  An immutable Color instance initialized to CSS color #696969

#### static constantCesium.Color.DODGERBLUE : Color
Core/Color.js 1119

  An immutable Color instance initialized to CSS color #1E90FF

#### static constantCesium.Color.FIREBRICK : Color
Core/Color.js 1128

  An immutable Color instance initialized to CSS color #B22222

#### static constantCesium.Color.FLORALWHITE : Color
Core/Color.js 1137

  An immutable Color instance initialized to CSS color #FFFAF0

#### static constantCesium.Color.FORESTGREEN : Color
Core/Color.js 1146

  An immutable Color instance initialized to CSS color #228B22

#### static constantCesium.Color.FUSCHIA : Color
Core/Color.js 1155

  An immutable Color instance initialized to CSS color #FF00FF

#### static constantCesium.Color.GAINSBORO : Color
Core/Color.js 1164

  An immutable Color instance initialized to CSS color #DCDCDC

#### static constantCesium.Color.GHOSTWHITE : Color
Core/Color.js 1173

  An immutable Color instance initialized to CSS color #F8F8FF

#### static constantCesium.Color.GOLD : Color
Core/Color.js 1182

  An immutable Color instance initialized to CSS color #FFD700

#### static constantCesium.Color.GOLDENROD : Color
Core/Color.js 1191

  An immutable Color instance initialized to CSS color #DAA520

#### static constantCesium.Color.GRAY : Color
Core/Color.js 1200

  An immutable Color instance initialized to CSS color #808080

#### static constantCesium.Color.GREEN : Color
Core/Color.js 1209

  An immutable Color instance initialized to CSS color #008000

#### static constantCesium.Color.GREENYELLOW : Color
Core/Color.js 1218

  An immutable Color instance initialized to CSS color #ADFF2F

#### static constantCesium.Color.GREY : Color
Core/Color.js 1227

  An immutable Color instance initialized to CSS color #808080

#### static constantCesium.Color.HONEYDEW : Color
Core/Color.js 1236

  An immutable Color instance initialized to CSS color #F0FFF0

#### static constantCesium.Color.HOTPINK : Color
Core/Color.js 1245

  An immutable Color instance initialized to CSS color #FF69B4

#### static constantCesium.Color.INDIANRED : Color
Core/Color.js 1254

  An immutable Color instance initialized to CSS color #CD5C5C

#### static constantCesium.Color.INDIGO : Color
Core/Color.js 1263

  An immutable Color instance initialized to CSS color #4B0082

#### static constantCesium.Color.IVORY : Color
Core/Color.js 1272

  An immutable Color instance initialized to CSS color #FFFFF0

#### static constantCesium.Color.KHAKI : Color
Core/Color.js 1281

  An immutable Color instance initialized to CSS color #F0E68C

#### static constantCesium.Color.LAVENDAR_BLUSH : Color
Core/Color.js 1299

  An immutable Color instance initialized to CSS color #FFF0F5

#### static constantCesium.Color.LAVENDER : Color
Core/Color.js 1290

  An immutable Color instance initialized to CSS color #E6E6FA

#### static constantCesium.Color.LAWNGREEN : Color
Core/Color.js 1308

  An immutable Color instance initialized to CSS color #7CFC00

#### static constantCesium.Color.LEMONCHIFFON : Color
Core/Color.js 1317

  An immutable Color instance initialized to CSS color #FFFACD

#### static constantCesium.Color.LIGHTBLUE : Color
Core/Color.js 1326

  An immutable Color instance initialized to CSS color #ADD8E6

#### static constantCesium.Color.LIGHTCORAL : Color
Core/Color.js 1335

  An immutable Color instance initialized to CSS color #F08080

#### static constantCesium.Color.LIGHTCYAN : Color
Core/Color.js 1344

  An immutable Color instance initialized to CSS color #E0FFFF

#### static constantCesium.Color.LIGHTGOLDENRODYELLOW : Color
Core/Color.js 1353

  An immutable Color instance initialized to CSS color #FAFAD2

#### static constantCesium.Color.LIGHTGRAY : Color
Core/Color.js 1362

  An immutable Color instance initialized to CSS color #D3D3D3

#### static constantCesium.Color.LIGHTGREEN : Color
Core/Color.js 1371

  An immutable Color instance initialized to CSS color #90EE90

#### static constantCesium.Color.LIGHTGREY : Color
Core/Color.js 1380

  An immutable Color instance initialized to CSS color #D3D3D3

#### static constantCesium.Color.LIGHTPINK : Color
Core/Color.js 1389

  An immutable Color instance initialized to CSS color #FFB6C1

#### static constantCesium.Color.LIGHTSEAGREEN : Color
Core/Color.js 1398

  An immutable Color instance initialized to CSS color #20B2AA

#### static constantCesium.Color.LIGHTSKYBLUE : Color
Core/Color.js 1407

  An immutable Color instance initialized to CSS color #87CEFA

#### static constantCesium.Color.LIGHTSLATEGRAY : Color
Core/Color.js 1416

  An immutable Color instance initialized to CSS color #778899

#### static constantCesium.Color.LIGHTSLATEGREY : Color
Core/Color.js 1425

  An immutable Color instance initialized to CSS color #778899

#### static constantCesium.Color.LIGHTSTEELBLUE : Color
Core/Color.js 1434

  An immutable Color instance initialized to CSS color #B0C4DE

#### static constantCesium.Color.LIGHTYELLOW : Color
Core/Color.js 1443

  An immutable Color instance initialized to CSS color #FFFFE0

#### static constantCesium.Color.LIME : Color
Core/Color.js 1452

  An immutable Color instance initialized to CSS color #00FF00

#### static constantCesium.Color.LIMEGREEN : Color
Core/Color.js 1461

  An immutable Color instance initialized to CSS color #32CD32

#### static constantCesium.Color.LINEN : Color
Core/Color.js 1470

  An immutable Color instance initialized to CSS color #FAF0E6

#### static constantCesium.Color.MAGENTA : Color
Core/Color.js 1479

  An immutable Color instance initialized to CSS color #FF00FF

#### static constantCesium.Color.MAROON : Color
Core/Color.js 1488

  An immutable Color instance initialized to CSS color #800000

#### static constantCesium.Color.MEDIUMAQUAMARINE : Color
Core/Color.js 1497

  An immutable Color instance initialized to CSS color #66CDAA

#### static constantCesium.Color.MEDIUMBLUE : Color
Core/Color.js 1506

  An immutable Color instance initialized to CSS color #0000CD

#### static constantCesium.Color.MEDIUMORCHID : Color
Core/Color.js 1515

  An immutable Color instance initialized to CSS color #BA55D3

#### static constantCesium.Color.MEDIUMPURPLE : Color
Core/Color.js 1524

  An immutable Color instance initialized to CSS color #9370DB

#### static constantCesium.Color.MEDIUMSEAGREEN : Color
Core/Color.js 1533

  An immutable Color instance initialized to CSS color #3CB371

#### static constantCesium.Color.MEDIUMSLATEBLUE : Color
Core/Color.js 1542

  An immutable Color instance initialized to CSS color #7B68EE

#### static constantCesium.Color.MEDIUMSPRINGGREEN : Color
Core/Color.js 1551

  An immutable Color instance initialized to CSS color #00FA9A

#### static constantCesium.Color.MEDIUMTURQUOISE : Color
Core/Color.js 1560

  An immutable Color instance initialized to CSS color #48D1CC

#### static constantCesium.Color.MEDIUMVIOLETRED : Color
Core/Color.js 1569

  An immutable Color instance initialized to CSS color #C71585

#### static constantCesium.Color.MIDNIGHTBLUE : Color
Core/Color.js 1578

  An immutable Color instance initialized to CSS color #191970

#### static constantCesium.Color.MINTCREAM : Color
Core/Color.js 1587

  An immutable Color instance initialized to CSS color #F5FFFA

#### static constantCesium.Color.MISTYROSE : Color
Core/Color.js 1596

  An immutable Color instance initialized to CSS color #FFE4E1

#### static constantCesium.Color.MOCCASIN : Color
Core/Color.js 1605

  An immutable Color instance initialized to CSS color #FFE4B5

#### static constantCesium.Color.NAVAJOWHITE : Color
Core/Color.js 1614

  An immutable Color instance initialized to CSS color #FFDEAD

#### static constantCesium.Color.NAVY : Color
Core/Color.js 1623

  An immutable Color instance initialized to CSS color #000080

#### static constantCesium.Color.OLDLACE : Color
Core/Color.js 1632

  An immutable Color instance initialized to CSS color #FDF5E6

#### static constantCesium.Color.OLIVE : Color
Core/Color.js 1641

  An immutable Color instance initialized to CSS color #808000

#### static constantCesium.Color.OLIVEDRAB : Color
Core/Color.js 1650

  An immutable Color instance initialized to CSS color #6B8E23

#### static constantCesium.Color.ORANGE : Color
Core/Color.js 1659

  An immutable Color instance initialized to CSS color #FFA500

#### static constantCesium.Color.ORANGERED : Color
Core/Color.js 1668

  An immutable Color instance initialized to CSS color #FF4500

#### static constantCesium.Color.ORCHID : Color
Core/Color.js 1677

  An immutable Color instance initialized to CSS color #DA70D6

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

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

#### static constantCesium.Color.PALEGOLDENROD : Color
Core/Color.js 1686

  An immutable Color instance initialized to CSS color #EEE8AA

#### static constantCesium.Color.PALEGREEN : Color
Core/Color.js 1695

  An immutable Color instance initialized to CSS color #98FB98

#### static constantCesium.Color.PALETURQUOISE : Color
Core/Color.js 1704

  An immutable Color instance initialized to CSS color #AFEEEE

#### static constantCesium.Color.PALEVIOLETRED : Color
Core/Color.js 1713

  An immutable Color instance initialized to CSS color #DB7093

#### static constantCesium.Color.PAPAYAWHIP : Color
Core/Color.js 1722

  An immutable Color instance initialized to CSS color #FFEFD5

#### static constantCesium.Color.PEACHPUFF : Color
Core/Color.js 1731

  An immutable Color instance initialized to CSS color #FFDAB9

#### static constantCesium.Color.PERU : Color
Core/Color.js 1740

  An immutable Color instance initialized to CSS color #CD853F

#### static constantCesium.Color.PINK : Color
Core/Color.js 1749

  An immutable Color instance initialized to CSS color #FFC0CB

#### static constantCesium.Color.PLUM : Color
Core/Color.js 1758

  An immutable Color instance initialized to CSS color #DDA0DD

#### static constantCesium.Color.POWDERBLUE : Color
Core/Color.js 1767

  An immutable Color instance initialized to CSS color #B0E0E6

#### static constantCesium.Color.PURPLE : Color
Core/Color.js 1776

  An immutable Color instance initialized to CSS color #800080

#### static constantCesium.Color.RED : Color
Core/Color.js 1785

  An immutable Color instance initialized to CSS color #FF0000

#### static constantCesium.Color.ROSYBROWN : Color
Core/Color.js 1794

  An immutable Color instance initialized to CSS color #BC8F8F

#### static constantCesium.Color.ROYALBLUE : Color
Core/Color.js 1803

  An immutable Color instance initialized to CSS color #4169E1

#### static constantCesium.Color.SADDLEBROWN : Color
Core/Color.js 1812

  An immutable Color instance initialized to CSS color #8B4513

#### static constantCesium.Color.SALMON : Color
Core/Color.js 1821

  An immutable Color instance initialized to CSS color #FA8072

#### static constantCesium.Color.SANDYBROWN : Color
Core/Color.js 1830

  An immutable Color instance initialized to CSS color #F4A460

#### static constantCesium.Color.SEAGREEN : Color
Core/Color.js 1839

  An immutable Color instance initialized to CSS color #2E8B57

#### static constantCesium.Color.SEASHELL : Color
Core/Color.js 1848

  An immutable Color instance initialized to CSS color #FFF5EE

#### static constantCesium.Color.SIENNA : Color
Core/Color.js 1857

  An immutable Color instance initialized to CSS color #A0522D

#### static constantCesium.Color.SILVER : Color
Core/Color.js 1866

  An immutable Color instance initialized to CSS color #C0C0C0

#### static constantCesium.Color.SKYBLUE : Color
Core/Color.js 1875

  An immutable Color instance initialized to CSS color #87CEEB

#### static constantCesium.Color.SLATEBLUE : Color
Core/Color.js 1884

  An immutable Color instance initialized to CSS color #6A5ACD

#### static constantCesium.Color.SLATEGRAY : Color
Core/Color.js 1893

  An immutable Color instance initialized to CSS color #708090

#### static constantCesium.Color.SLATEGREY : Color
Core/Color.js 1902

  An immutable Color instance initialized to CSS color #708090

#### static constantCesium.Color.SNOW : Color
Core/Color.js 1911

  An immutable Color instance initialized to CSS color #FFFAFA

#### static constantCesium.Color.SPRINGGREEN : Color
Core/Color.js 1920

  An immutable Color instance initialized to CSS color #00FF7F

#### static constantCesium.Color.STEELBLUE : Color
Core/Color.js 1929

  An immutable Color instance initialized to CSS color #4682B4

#### static constantCesium.Color.TAN : Color
Core/Color.js 1938

  An immutable Color instance initialized to CSS color #D2B48C

#### static constantCesium.Color.TEAL : Color
Core/Color.js 1947

  An immutable Color instance initialized to CSS color #008080

#### static constantCesium.Color.THISTLE : Color
Core/Color.js 1956

  An immutable Color instance initialized to CSS color #D8BFD8

#### static constantCesium.Color.TOMATO : Color
Core/Color.js 1965

  An immutable Color instance initialized to CSS color #FF6347

#### static constantCesium.Color.TRANSPARENT : Color
Core/Color.js 2037

  An immutable Color instance initialized to CSS transparent.

#### static constantCesium.Color.TURQUOISE : Color
Core/Color.js 1974

  An immutable Color instance initialized to CSS color #40E0D0

#### static constantCesium.Color.VIOLET : Color
Core/Color.js 1983

  An immutable Color instance initialized to CSS color #EE82EE

#### static constantCesium.Color.WHEAT : Color
Core/Color.js 1992

  An immutable Color instance initialized to CSS color #F5DEB3

#### static constantCesium.Color.WHITE : Color
Core/Color.js 2001

  An immutable Color instance initialized to CSS color #FFFFFF

#### static constantCesium.Color.WHITESMOKE : Color
Core/Color.js 2010

  An immutable Color instance initialized to CSS color #F5F5F5

#### static constantCesium.Color.YELLOW : Color
Core/Color.js 2019

  An immutable Color instance initialized to CSS color #FFFF00

#### static constantCesium.Color.YELLOWGREEN : Color
Core/Color.js 2028

  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.byteToFloat(number) → Number
Core/Color.js 472

  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 494

  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.equals(left, right) → Boolean
Core/Color.js 515

  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 483

  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) → Color
Core/Color.js 364

  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.

  ##### 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) → Color
Core/Color.js 201

  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

  ##### Returns:

  The color object.

  ##### See:

  - CSS color values

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

  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) → Color
Core/Color.js 184

  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.

  ##### Returns:

  A new color instance.

  ##### Example:

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

  ##### See:

  - Color#toRgba

#### staticCesium.Color.pack(value, array, startingIndex)
Core/Color.js 422

  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.

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

  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 651

  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 541

  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 682

  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 551

  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 562

  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 604

  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 587

  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 632

  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 576

  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 713

  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);