AuthorTravis Kirton
Tags filters
This example shows how you can generate a linear gradient as an image.
let filter = LinearGradient() //change filter settings img.generate(filter)
let image = Image(frame: canvas.frame) canvas.add(image) var filter = LinearGradient() filter.colors = [C4Pink, C4Blue] filter.points = [Point(), canvas.center] image.generate(filter)