Author
Travis Kirton


Bloom

This example shows how you can apply a bloom filter to an image.

let filter = Bloom()
//change filter settings
img.apply(filter)

Example

let image = Image("chop")!
image.constrainsProportions = true
//Bloom reduces the size of the image, so we adjust to fill the canvas
image.width = canvas.width + 140
image.center = canvas.center
canvas.add(image)

let filter = Bloom()
image.apply(filter)