madbence / node-drawille

Drawing in terminal with unicode braille characters
MIT License
1.01k stars 28 forks source link

cube.js example error #6

Closed wanderer closed 10 years ago

wanderer commented 10 years ago

the cube example throws the following.

Error: (75, -1) is out of the canvas! at Canvas.(anonymous function) as set at module.exports (/home/null/clones/node-drawille/node_modules/bresenham/index.js:11:7) at /home/null/clones/node-drawille/examples/cube.js:44:7 at Array.forEach (native) at /home/null/clones/node-drawille/examples/cube.js:42:10 at Array.forEach (native) at draw (/home/null/clones/node-drawille/examples/cube.js:41:15) at wrapper as _onTimeout at Timer.listOnTimeout as ontimeout

but clock.js works great!

wanderer commented 10 years ago

also I should note; sometimes it does run for a few seconds before crashing with the is out of the canvas! error

madbence commented 10 years ago

Out-of-canvas drawing calls are now silently ignored in v0.1.0