Thoroughly documented, tested, and minifies very small (1.4k), this is the best release yet!

Observe the sweetness:

// Rotate 90 degrees var matrix = Matrix.rotation(Math.PI / 4); // Scale and move var finalTransform = matrix.scale(1/2).translate(125, 175); canvas.withTransform(finalTransform, function() { // Draw a circle or whatever in the transformed coordinates // canvas.fillCircle(0, 0, 50); }); |