Using the blur modifier to create a vapor effect
In this part of the project, we will be using the blur
modifier, which will apply a Gaussian blur to an image using a radius value that we specify. If you’re not familiar with what a Gaussian blur is, this is a technique that is widely used in image editing software (such as Photoshop) and works by reducing the noise and detail of an image to create a smooth blurring visual effect.
We will use an image of smoke, called breath
(which is in the Assets catalog), and apply the blur
modifier to it, which will create a vapor effect and make our flower look like it’s breathing.
There is very little code needed to achieve this effect. Coming out of the previous group we made, let’s make a new group and add the following code:
//MARK: - TAKE AN IMAGE AND CONVERT IT TO VAPOR (BREATH) USING THE BLUR MODIFIER Group { ...