npm.io
0.2.0 • Published 6 years ago

clgl

Licence
MIT
Version
0.2.0
Deps
0
Size
19 kB
Vulns
0
Weekly
0

clgl

A graphic lib for command line.

Introduction

This is a graphic lib for command line, which enables you to shade graphics in console. Technically, the graphics are output to NodeJS streams, so you can also direct them to other places.

Example

const { Root, Node, Shaders } = require('clgl');

const root = new Root();

const box = new Node({
    left: 1,
    top:1,
    width: 10,
    height: 3,
    shader: Shaders.Pure('#'),
});
root.childNodes.push(box);

root.tick();

Keywords