JSPM

blessed-circle

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q19270F
  • License MIT

Draw a circle in your terminal using blessed.

Package Exports

  • blessed-circle

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (blessed-circle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

blessed-circle

🎨 Draw a circle or a disk in your terminal using blessed.

Circle Disk

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 size
    • color : circle color
    • fill : flag to draw a disk instead of a circle
    • All blessed.Element properties

Credits