render method

void render(
  1. Canvas canvas
)

Implementation

void render(Canvas canvas) {
  if (this.visible == false || this.alpha == 0) return;

  this.canvas = canvas;
  canvas.save();
  this.transform(canvas);
  this.draw(canvas);
  canvas.restore();
}