With a couple of loops and a bit of maths you can create a rotating spiral.
Check out codegolf.stackexchange.com if you want to solve programming puzzles, but with a twist.