Transform only the styling of a Path2DIn the canvas 2d api, we can first define a subpath using one context's transformation and then change that context's transformation for only the