from piscript.PiModule import *
import math

def box(w,h):
	moveto(0,0)
	rlineto(w,0)
	rlineto(0,h)
	rlineto(-w,0)
	closepath()
	
init("square3", 160, 160)
beginpage()
translate(80,80)
scale(80)
translate(-0.5,-0.5)
rotate(math.pi/6)


newpath()
box(1,1)
fill(1,0,0.6)
stroke(0.5)

endpage()
finish()
