renderPosition method
Renders the svg on the canvas
on the given position
using the
dimensions provided by size
.
Implementation
void renderPosition(
Canvas canvas,
Vector2 position,
Vector2 size,
) {
canvas.renderAt(position, (c) => render(c, size));
}