The source will be up eventually... im still working on a more advanced version with more features. This application shows the basic functionality.
http://www.fluidcoding.com/wallpaperB1.php

a screenie is there if you don't feel like downloading.