Fun Programming

Fun programming 148: Drawing shapes with glow or shadow


Listen Later

By drawing the stroke of a shape multiple times with low opacity we can easily achieve glows and shadows. A simple concept that can produce good looking images. Here some examples: hamoid.tumblr.com/post/76579918775/84932-jpg-34758-jpg-and-49862-jpg-as-saved-by (expired link)

Tip: the darkness of the shadow or glow should not decrease in a linear fashion (like 8, 6, 4, 2) or it will not look too real. That's why I used distances like 22, 33, 44 and 55. I'll try to record an episode in the future about linear vs exponential and other interesting curves. Meanwhile here you can find information about curves at: robertpenner.com/easing/

...more
View all episodesView all episodes
Download on the App Store

Fun ProgrammingBy