# Gradient

> A simple object defining a color gradient.

- Source: https://titaniumsdk.com/docs/sdk/12.6.0/Gradient
- Titanium SDK version: 12.6.0
- Kind: pseudo
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 1.8.0

## Properties

### backfillEnd

- Type: Boolean
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 7.1.0
- Default: `false`

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
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 7.1.0
- Default: `false`

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>
- Platforms: Android, iPhone, iPad, macOS

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

For information about color values, see the "Colors" section of [Titanium.UI](https://titaniumsdk.com/docs/sdk/Titanium.UI.md).

### endPoint

- Type: Point
- Platforms: Android, iPhone, iPad, macOS
- Default: `{x: 0.0, y: 1.0}`

End point for the gradient.

### endRadius

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 7.1.0

For a radial gradient, the radius at the `endPoint`.

### startPoint

- Type: Point
- Platforms: Android, iPhone, iPad, macOS
- Default: `{x: 0.0, y: 0.0}`

Start point for the gradient.

### startRadius

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 7.1.0

For a radial gradient, the radius at the `startPoint`.

### type

- Type: String
- Platforms: Android, iPhone, iPad, macOS
- Default: `linear`

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

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

