cli-artist
Version:
A drawing library for the console.
17 lines (11 loc) • 338 B
JavaScript
let engine = require('../engine');
const setup = () => {
}
const draw = () => {
engine.fillBackground("red");
engine.fillForeground("red");
engine.drawCircle(engine.width / 2, engine.height / 2, 20, "o");
}
const keyPressed = (key) => {
}
engine.init(setup, draw, keyPressed, 20) // Initialise the engine