3 ms·
Is the author aware of https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D#Transformations https://developer.mozilla.org/en-US/docs/Web/AP
by tantalor 11y ago
Is the author aware of https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D#Transformations https://developer.mozilla.org/en-US/docs/Web/API/CanvasRende...?
Use rotate(), translate(), and scale() instead of doing your own math.
- MJSplot_author 11y agoYes, but this is as simple. It's not really my maths, it's quite standard stuff. I'm more excited about Path2D[0] becoming adopted by more browsers. [0] https://developer.mozilla.org/en-US/docs/Web/API/Path2D https://developer.mozilla.org/en-US/docs/Web/API/Path2D