# Gradient

A simple object defining a color gradient.

Availability
1.8.0
1.8.0
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

# backfillEnd

Availability
7.1.0
1.8.0
9.2.0
backfillEnd :Boolean

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

Availability
7.1.0
1.8.0
9.2.0
backfillStart :Boolean

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

Availability
1.8.0
1.8.0
9.2.0
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.


# endPoint

Availability
1.8.0
1.8.0
9.2.0
endPoint :Point

End point for the gradient.

Default: {x: 0.0, y: 1.0}


# endRadius

Availability
7.1.0
1.8.0
9.2.0
endRadius :Number

For a radial gradient, the radius at the endPoint.


# startPoint

Availability
1.8.0
1.8.0
9.2.0
startPoint :Point

Start point for the gradient.

Default: {x: 0.0, y: 0.0}


# startRadius

Availability
7.1.0
1.8.0
9.2.0
startRadius :Number

For a radial gradient, the radius at the startPoint.


# type

Availability
1.8.0
1.8.0
9.2.0
type :String

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

Default: linear