Translate-rotate-translate rotation
Rotating a Canvas 2D shape about its own center by translating to the pivot, rotating the context, then offsetting by the shape's half-dimensions before drawing at the origin.
Rotating a Canvas 2D shape about its own center by translating to the pivot, rotating the context, then offsetting by the shape's half-dimensions before drawing at the origin.