Canvas::[renderWith -> render]
This commit is contained in:
parent
b03abf5907
commit
0c2c9d53a9
|
@ -25,7 +25,7 @@ class CanvasBase {
|
|||
return this.renderTexture;
|
||||
}
|
||||
|
||||
renderWith(renderable, renderer) {
|
||||
render(renderable, renderer) {
|
||||
renderer.render(renderable, this);
|
||||
}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ export class TilesRenderer {
|
|||
// Blit to canvas.
|
||||
const canvasSize = Vector.mul(size, tileSize);
|
||||
const canvas = new Canvas(canvasSize);
|
||||
canvas.renderWith(container, renderer);
|
||||
canvas.render(container, renderer);
|
||||
container.destroy();
|
||||
// Convert to image and return.
|
||||
const image = canvas.toImage();
|
||||
|
|
Loading…
Reference in New Issue
Block a user