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 providedpaint
(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 -
transform2D(
Transform2D transform2D) → void - Use the Transform2D object to transform the canvas.
-
translateVector(
Vector2 vector) → void