Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
github.com/madbence/node-drawille-canvas
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
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.