This is for NXTGeek Drag the yellow light source around and see the shadow lines move. This shows how to compute shadow lines with trigonometry. It uses a straight line sprite to stamp the shadow lines - the pen wasn't working well when pushed too far off the screen. Still something funny going on with the shadow lines - at certain angles, they leave the surface of the posts. I don't know why they are doing that yet.