30 Jul
So, I got a little bored … and I added shadows to my Header Image Generator script, just because my original script had them (the one from the church website I mentioned earlier).
The $shadow_count setting controls the whole thing. If it’s set to 0, everything is as before, no shadows. If it’s set to 1 you get a single shadow level, and 2 gets you two levels of shadow.
$shadow_offset controls how many pixels offset the shadow(s) appear. Honestly, unless you’re using a huge font, you probably only want it offset by one pixel, or at most two.
There are two color settings for each of the possible shadows. If you only have one level, then $shadow_color_1 is your man, but if you have two, $shadow_color_2 is the second level and appears offset from the first shadow by the same amount as that shadow is offset from the actual text.If you want a really subtle shadow youa??ll want to offset the shadows by one pixel, and have your second shadow be lighter than the first. For the time being, you can see this effect in action on my site. To get a more pronounced shadow, you can set your second shadow to a slightly darker color, which results in a more a??drop shadowa?? like effect. Anyway, have at it.