Skip to content

Titanium.UI.Gradient

A simple object defining a color gradient.

Since: 1.8.0 · Platforms: android, iphone, ipad, macos

Properties #

backfillEnd#

Type: Boolean

Set to true to continue filling with the final color beyond the endPoint.

On Android, this property is only supported by radial gradients.

backfillStart#

Type: Boolean

Set to true to continue filling with the starting color beyond the startPoint.

On Android, this property is only supported by radial gradients.

colors#

Type: Array<String>, Array<GradientColorRef>

An array of colors, as a color name or hex triplet.

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

endPoint#

Type: Point

End point for the gradient.

endRadius#

Type: Number

For a radial gradient, the radius at the endPoint.

startPoint#

Type: Point

Start point for the gradient.

startRadius#

Type: Number

For a radial gradient, the radius at the startPoint.

type#

Type: String

Type of gradient, either 'linear' or 'radial'.

Titanium SDK Documentation