Contents

init(colors:)

Creates a gradient from an array of colors.

Declaration

init(colors: [Color])

Discussion

The gradient synthesizes its location values to evenly space the colors along the gradient.