Is the author aware of https://developer.mozilla.org/en-US/docs/Web/API/CanvasRende...?
Use rotate(), translate(), and scale() instead of doing your own math.
Use rotate(), translate(), and scale() instead of doing your own math.
I'm more excited about Path2D[0] becoming adopted by more browsers.