console-canvas
Draw colorful geometric shapes in the console
Installation
npm install --save console-canvas
Getting started
// launch with: node <this file name> const ConsoleCanvas colors = ; // Creates a 15x7 canvas (dimension: console character)const canvas = 15 7; // Colors a point at (x,y) with one 16 background colorcanvas;canvas;canvas; // Fills a rectangle at (x0,y0,x1,y1)canvas;canvas;canvas; // Flushes the drawing to stdout,// then rewinds the console cursor to the beginning// (for animations, draw several stuff, and call print in between!)canvas; // Makes the cursor go just below the canvascanvas;