Contents

repeat

An option that repeats the gradient outside its nominal range.

Declaration

static var `repeat`: GraphicsContext.GradientOptions { get }

Discussion

Use this option to cause the gradient to repeat its pattern in areas that exceed the bounds of its start and end points. The repetitions use the same start and end value for each repetition.

Without this option or mirror, the gradient stops at the end of its range. The mirror option takes precendence if you set both this one and that one.

See Also

Getting gradient options