Skip to content

Titanium.UI.GradientColorRef

A simple object consisting of a color and an offset.

Properties #

color#

Type: 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#

Type: 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.

Titanium SDK Documentation