renderBackground method

  1. @override
void renderBackground(
  1. Color backgroundColor
)
override

Implementation

@override
void renderBackground(Color backgroundColor) {
  var camera = display.camera;
  var c = display.applyColorTransformation(backgroundColor);
  ctx.fillStyle = c.toRGBAString();

  var x = camera.frameCenter.x - camera.frameWidth / 2;
  var y = camera.frameCenter.y - camera.frameHeight / 2;

  ctx.fillRect(x, y, camera.frameWidth, camera.frameHeight);
}