apply method

void apply(
  1. Canvas canvas
)
inherited

Use this method to transform the canvas using the current rules provided by this camera object.

If you are using FlameGame, this will be done for you for all non-HUD components. When using this method you are responsible for saving/restoring canvas state to avoid leakage.

Implementation

void apply(Canvas canvas) {
  canvas.transform(_transformMatrix(position, zoom).storage);
}