CzmlColor

CzmlColor

Members

<static>

The number of doubles per packed value used for interpolation.

<static>

The number of doubles per packed Color value.

Methods

<static>

Given a non-sampled unwrapped interval, returns a Color instance of the data.

Parameters:
Name Type Description
unwrappedInterval Object The result of CzmlColor.unwrapInterval.
result Color The object to store the result in, if undefined a new instance will be created.
Returns:
The modified result parameter or a new Color instance if result was not defined.

<static>

Given a packed array of red, green, blue, and alpha values, extracts a Color instance.

Parameters:
Name Type Description
array Array A packed array of Color values, where every four elements represents a Color.
startingIndex Number The index into the array that contains the red value of the Color you would like.
result Color The object to store the result in, if undefined a new instance will be created.
Returns:
The modified result parameter or a new Color instance if result was not defined.

<static>

Returns true if this interval represents data that should be interpolated by the client or false if it's a single value.

Parameters:
Name Type Description
unwrappedInterval Object The result of CzmlColor.unwrapInterval.

<static>

Returns the packed Color representation contained within the provided CZML interval or undefined if the interval does not contain Color data.

Parameters:
Name Type Description
czmlInterval Object The CZML interval to unwrap.