Documentation

class Gradient

A class that represents a color gradient.

class Gradient;

Description

Use the static factory methods on UIColor to create gradients:

Examples

UIColor.linearGradient(180, UI.colors.blue, UI.colors.green)
UIColor.linearGradient(90, UI.colors.red, [UI.colors.yellow, 0.5], UI.colors.blue)
UIColor.radialGradient(UI.colors.white, UI.colors.black)
UIColor.conicGradient(0, UI.colors.red, UI.colors.yellow, UI.colors.green, UI.colors.blue)

Type members

Instance members

Related