Mess with the variables to get a cool effect (the lower the quality, the higher the quality) Press 'C' to clear the rendered shadow and re-arrange the objects as you please. Click 'space' to render.
All code by me.