OK - it just draws a grid - but the method it uses is quite interesting. Download the script. Try changing the numbers and see what happens...