Thursday, February 25, 2010

Text Blur and shadow.

Here is a simple script to add a blur like effect to text and numbers.
It can also be used to make shadows for text.

Here is a comparison of the blur effect in use and text without the effect.

The effect works by taking multiple instances of the same text, making them mostly transparent and then overlaying them with a slight offset for each instance. In this case I am displaying the text at various points around a very small circle.

Like so:

The blur effect uses a much smaller circle and calculates transparency by the number of instances of the text you want.

You can get the code from my post on the crunchbanglinux forum here.

1 comment:

  1. I try to probe this script to effects over the text and does not work at all. I don't know what exactly is the reason, but the fact is that sometimes the conkyrc does not call the .lua script properly (or never). Seems to be a bug on the 1.8+ version.