We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57f468d commit bca2024Copy full SHA for bca2024
src/canvas/main.ts
@@ -7,6 +7,8 @@ const game = new ex.Engine({
7
8
// start-snippet{canvas}
9
const canvas = new ex.Canvas({
10
+ width: 200,
11
+ height: 200,
12
cache: true, // If true draw once until flagged dirty again, otherwise draw to Canvas every frame
13
draw: (ctx) => {
14
console.log('With cache=true I draw once');
0 commit comments