Context Free Art – Tutorial 2

We introduce the use of the rotation parameter for a shape:

startshape MyShape

rule MyShape {
     SQUARE {x -4 r 90}
     SQUARE {x -2 r 70}
     SQUARE {r 50}
     SQUARE {x +2 r 30}
     SQUARE {x +4 r 10}
}


Rotation