# transform3.py
from Processing import *
from grid import grid

window(500, 500)
rectMode(CENTER)

angle = 0.0
def draw(o, e):
    global angle
    background(255)

    pushMatrix()

    translate(250, 250)
    rotate( radians(angle) )

    noFill()
    rect(0, 0, 100, 50)

    popMatrix()

    angle += 3

frameRate(30)
onLoop += draw
loop()