blessed-circle
v1.0.0
Published
Draw a circle in your terminal using blessed.
Downloads
2
Maintainers
Readme
blessed-circle
:art: Draw a circle or a disk in your terminal using blessed.
Install
npm i -S blessed-circle
You also need to have blessed installed locally as it's a peerDependency.
Usage
// Create blessed screen
const screen = blessed.screen();
const circle = new Circle({
top : 'center',
left : 'center',
diameter : 100,
color : 'white',
});
// Disk
const disk = new Circle({
top : 'center',
left : 'center',
diameter : 100,
color : 'white',
fill : true,
});
API
new Circle(opts)
diameter
: circle sizecolor
: circle colorfill
: flag to draw a disk instead of a circle- All
blessed.Element
properties
Credits
- blessed
- blessed-contrib and its donut widget