madbence/node-drawille
关于
使用 Unicode 盲文字符在终端中绘图
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- 0
- 1个月
- +1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文node-drawille 
drawing in terminal with unicode braille characters. The idea is based on drawille by @asciimoo.

install
install the package with npm:
$ npm install --save drawille
usage
See examples.
this module provides a very basic API only, for fancy things, like drawing lines, use another module, like bresenham.
drawille-canvas provides HTML5 Canvas API for drawille.
api
Canvas(w, h)
Create a new canvas with the given dimensions.
w must be multiple of 2, h must be multiple of 4.
Uses columns & rows from process.stdout as default values for w and h.
canvas.set(x, y)
Draw point on canvas at the given position.
canvas.unset(x, y)
Delete point on canvas at the given position.
canvas.toggle(x, y)
Toggle point on canvas at the given position.
canvas.clear()
Clear the whole canvas (delete every point).
canvas.frame(delimiter)
return the current content of canvas, as a delimiter-delimited
string. delimiter defaults to \n.
it uses braille characters to represent points,
so every line has length of w/2, and the string contains h/4
lines.
projects
vtopuses it to draw CPU and memory usage charts in the terminaldatopuses it to draw dat statisticsboscillateuses it to drawbaudiosoundwaves in real-time
license
MIT
探索相关项目
加载中…