CanvasExtension extension

on

Methods

renderAt(Vector2 p, void fn(Canvas)) → void
Utility method to render stuff on a specific place in an isolated way.
renderPoint(Vector2 point, {double size = 1.0, Paint? paint}) → void
Renders a point as a square of size size (default 1 logical pixel) using the provided paint (default solid magenta).
renderRotated(double angle, Vector2 rotationCenter, void fn(Canvas)) → void
Utility method to render stuff rotated at specific angle.
scaleVector(Vector2 vector) → void
translateVector(Vector2 vector) → void