# GradientColorRef

A simple object consisting of a color and an offset.

Availability
0.8
0.8
9.2.0
Extends
Object

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Properties

# color

Availability
0.8
0.8
9.2.0
color :String | Titanium.UI.Color

Color value at this point in the gradient, as a color name or hex triplet.

For information about color values, see the "Colors" section of Titanium.UI.


# offset

Availability
0.8
0.8
9.2.0
offset :Number

The color's normalized position within the gradient, ranging from 0 (start) to 1 (end).

For a linear gradient, the offset ranges between startPoint and endPoint.

For a radial gradient, the offset ranges between startRadius and endRadius.