def polygon(n:Int,side:Int)=repeat(n) { forward(side) left(360/n) } def rotate(n:Int,heading:Int,side:Int)= repeat(360/heading) {polygon(n,side);left(heading)} setSpeed(fast) setBackgroundV(black, white) rotate(5, 10, 100)