# example4.py

from Processing import *
window(500, 500)

start = 0.0
w = width()
h = height()

def draw(o, e):
    background(255)
    noStroke()
    fill(0)
    
    translate( 0.5*w, 0.5*h )
    rotate(start)
    
    for i in range(36):
        text( i, 0.0, -150.0 )
        rotate(10.0 * (PI/180.0))

    global start
    start += 1.0*(PI/180.0) % TWO_PI

frameRate(50)
onLoop += draw
loop()
