programs/theLight.toby
author Ryan C. Gordon <icculus@icculus.org>
Tue, 18 Mar 2008 02:05:22 +0000
changeset 499 96e88f292dc8
parent 1 d7cb562e4e24
permissions -rw-r--r--
Updated Lua from 5.1.1 to 5.1.3.
// theLight.toby : Just plain cool.

function clockwise(number size) returns nothing
    number i
    for i = 1 to 360
        setPenDown()
        goForward(size)
        setPenUp()
        goBackward(size)
        turnRight(1)
    endfor
endfunction


function theLight() returns nothing

// This will eventually step in a FOR loop...

    clockwise(50)
    clockwise(100)
    clockwise(150)
    clockwise(200)
    clockwise(250)
    clockwise(300)
    clockwise(350)
    clockwise(400)
    clockwise(450)
    clockwise(500)
endfunction


function main() returns nothing
	disableFence()	
    theLight()
endfunction

// end of theLight.toby ...