Here’s an icon of a police siren I created recently for one of my clients. When working on producing the highlights on the rim I found that using a clipping mask was the best way to get an good effect.
Looking at the rims of the silver bit of the light you first need to assess where your light source is coming from. Here it is coming from the upper left. So I need to have an effect that goes from light at the front to dark at the back. Using the pen tool and on a new layer I create the crescent shape that I’m going to use to show the highlight.
Next I add a gradient. I draw a large square over the area and then add a gradient in.
I want the light to go from right to left so using the gradient options I set the type to Linear and the Angle to 200. How you set it will depend on your light source and colours.
In order to make the clipping mask you need to group the path and the gradient. Select both layers (hold down shift to select both) and click CTRL + G on Windows or Apple + G on a Mac. This groups the layers together.
At the bottom of the layers palette is an option to make a clipping mask. With the group selected and ensuring the gradient is the bottom layer create a clipping mask. You can see the gradient is shown but only for the path you have drawn. If you are not happy with the gradient you can click the same button at the bottom of the layers palette, release the clipping mask and amend the gradient.
Using this technique you can get close to natural light effects. Of course there are other ways to do it but for now I like this one.
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Listening to BBC Radio with mpv
The BBC publishes high quality 320 kbps HLS AAC streams that can be used to listen to radio from the command-line using mpv. Here are the URLs and some aliases to start listening quickly.
Vim: So long Pathogen, hello native package loading
Vim 8 added a native way to load third-party packages. This means, for me at least, there is no longer any need to use a third party plugin helper like Pathogen.
Linux and Unix more command tutorial with examples
Tutorial on using more, a UNIX and Linux command for viewing the contents of a file or files one screen at a time. Examples of viewing a file, viewing multiple files, searching using regular expressions and opening the file in a text editor.