Question: what is the difference between rotation and scaling?
Answer: You spin the drawing surface around the origin by calling the rotate(angle) method. The canvas's coordinate system is spun clockwise by angle radians. You scale the drawing surface by calling the scale(xScale,yScale) method.