$ npm install drawille-canvas-blessed-contrib
HTML5 Canvas API for drawille
.
$ npm install drawille-canvas
In node v0.10
it's a bit slow, with node v0.11
it runs very smoothly.
See example, check out in the console (node example
) or in the browser (example.html
).
Creates a new Canvas
with the given dimensions.
For method details, see CanvasRenderingContext2D
on MDN
Fills the given area of the canvas.
Clears the given area of the canvas.
Save the current transformation matrix on the stack.
Restore the last transformation matrix.
Translate the current transformation matrix.
Rotate the current transformation matrix with the given angles.
Scale the current transformation matrix.
Start a new path.
Close the current path.
Moves the starting point of the next segment to the given coordinates.
Connects the starting point with the given point with a straight line.
Stroke the current path.
.fill
to fill paths.arc
, .arcTo
MIT
© 2010 - cnpmjs.org x YWFE | Home | YWFE