Skip to content
Titanium SDK
Version13.3.0

You are reading 13.3.0. See this page in 13.4.1.

Gradient

pseudoAndroidiPhoneiPadmacOSsince 1.8.0

A simple object defining a color gradient.

Properties 8

backfillEnd

Booleansince 7.1.0

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

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

Default: false

backfillStart

Booleansince 7.1.0

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

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

Default: false

colors

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.

End point for the gradient.

Default: {x: 0.0, y: 1.0}

endRadius

Numbersince 7.1.0

For a radial gradient, the radius at the endPoint.

startRadius

Numbersince 7.1.0

For a radial gradient, the radius at the startPoint.

type

String

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

Default: linear