cleari()
//showAxes()
def shape =
Picture.fromVertexShape { x =>
x.beginShape()
x.vertexRt(150, 0)
x.vertexRt(150, 144)
x.vertexRt(150, 144*2)
x.vertexRt(150, 144*3)
x.vertexRt(150, 144*4)
x.vertexRt(150, 144*5)
x.endShape()
}
animateWithState(0) {
case angle =>
erasePictures()
shape.thatsRotated(angle).draw
angle + 1
}
shape.draw