Fixed the example in README.md

I made the edit without testing, please review the change if it makes sense to you, thank you.
This commit is contained in:
Vincent Cantin 2017-04-10 12:58:06 +08:00 committed by GitHub
parent 1063f68572
commit 196c33a161

View File

@ -27,13 +27,13 @@ npm install https://github.com/LLK/scratch-render.git
```js
var canvas = document.getElementById('myStage');
var debug = document.getElementById('myDebugElement');
var debug = document.getElementById('myDebug');
// Instantiate the renderer
var renderer = new require('scratch-render')(canvas);
// Connect to debug canvas
renderer.setDebugCanvas(document.getElementById('debug-canvas'));
renderer.setDebugCanvas(debug);
// Start drawing
function drawStep() {