Coding Graphics

Getting started

Execution

node index.js

For development

nodemon -x "clear;node" index.js

Inputs (index.js)

const graphics = [
    new Graphic("Label 1", 6),
    new Graphic("Label 2", 2.9),
    new Graphic("Label 3", 3.85),
]

Result

 | ********** |            |            | 
 | ********** |            |            | 
 | ********** |            |            | 
 | ********** |            | ****       | 
 | ********** |            | ********** | 
 | ********** | ********** | ********** | 
 | ********** | ********** | ********** | 
 | ********** | ********** | ********** | 
 | ********** | ********** | ********** | 
 | ********** | ********** | ********** | 
 | Label 1    | Label 2    | Label 3    |