CanvasExtension extension

on

Methods

renderAt(Vector2 p, void fn(Canvas)) → void

Available on Canvas, provided by the CanvasExtension extension

Utility method to render stuff on a specific place in an isolated way.
renderPoint(Vector2 point, {double size = 1.0, Paint? paint}) → void

Available on Canvas, provided by the CanvasExtension extension

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

Available on Canvas, provided by the CanvasExtension extension

Utility method to render stuff rotated at specific angle.
scaleVector(Vector2 vector) → void

Available on Canvas, provided by the CanvasExtension extension

transform2D(Transform2D transform2D) → void

Available on Canvas, provided by the CanvasExtension extension

Use the Transform2D object to transform the canvas.
translateVector(Vector2 vector) → void

Available on Canvas, provided by the CanvasExtension extension