Gradient

Object
Platform Since
iPhone 1.8.0
iPad 1.8.0

Summary

A simple object defining a color gradient.

Methods

Name Summary
getBackfillEnd

Gets the value of the backfillEnd property.

getBackfillStart

Gets the value of the backfillStart property.

getColors

Gets the value of the colors property.

getEndPoint

Gets the value of the endPoint property.

getEndRadius

Gets the value of the endRadius property.

getStartPoint

Gets the value of the startPoint property.

getStartRadius

Gets the value of the startRadius property.

getType

Gets the value of the type property.

setBackfillEnd

Sets the value of the backfillEnd property.

setBackfillStart

Sets the value of the backfillStart property.

setColors

Sets the value of the colors property.

setEndPoint

Sets the value of the endPoint property.

setEndRadius

Sets the value of the endRadius property.

setStartPoint

Sets the value of the startPoint property.

setStartRadius

Sets the value of the startRadius property.

setType

Sets the value of the type property.

Properties

Name Type Summary
backfillEnd Boolean

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

backfillStart Boolean

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

colors Array<String> or Array<GradientColorRef>

An array of colors.

endPoint Point

End point for the gradient.

endRadius Number

For a radial gradient, the radius at the endPoint.

startPoint Point

Start point for the gradient.

startRadius Number

For a radial gradient, the radius at the startPoint.

type String

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

Events

This type has no events.