2.7.1.2. Demo : Using a Gradient as a Layer Mask

We can also use gradients as layer masks to create all kinds of fading effects.

Demo

  1. Open lena.png.
  2. Create a new layer and make it black (using the new button)
  3. Place it below the lena image.
  4. Add a layer mask.
  5. Switch the colours to white as foreground and black as background.
  6. Draw a foreground to background RGB gradient around Lena's face.

Note

My partner for "Image Processing and Analysis" and I worked for quite some time to create a similar effect in Matlab.

(X .^ 2 + Y .^ 2) .^ (2.5) anyone?


Written by Shlomi Fish