GradientColorRef

A simple object consisting of a color and an offset.

  • 0.8
  • 0.8
  • 0.8

NOTE This is an abstract type. Any object meeting this description can be used where this type is used.

Defined By

Properties

GradientColorRef
color : String

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

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.

GradientColorRef
offset : Number

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

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.