Transform

2D transformations together

Now you can combine different transformations. Below is a sketch that draws four spinning rectangles around mouse. Individual rectangles are rotating counter clockwise and circulating mouse clockwise. The rectangles are also scaled using sine-function.