Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1computer1/canvas-writer
Wrapper for node-canvas to help with drawing text. https://www.npmjs.com/package/canvas-writer
https://github.com/1computer1/canvas-writer
Last synced: 6 days ago
JSON representation
Wrapper for node-canvas to help with drawing text. https://www.npmjs.com/package/canvas-writer
- Host: GitHub
- URL: https://github.com/1computer1/canvas-writer
- Owner: 1Computer1
- License: mit
- Created: 2016-12-14T23:01:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-17T00:05:59.000Z (almost 8 years ago)
- Last Synced: 2024-09-16T03:44:03.945Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# canvas-writer
Wrapper for node-canvas to help with drawing text.### Example
```js
const Canvas = require('canvas');
const CanvasWriter = require('canvas-writer');let picture = new CanvasWriter(new Canvas(200, 200));
picture.write('Hello world! Text that will probably be wrapped onto the next lines because it\'s longer than that -> ', 100, {
font: '16px "Segoe UI"',
style: 'white'
});console.log(picture.toString());
// Hello world!
// Text that will
// probably be
// wrapped onto
// the next lines
// because it's
// longer than
// that ->picture.saveFile('./mypicture.png'); // You're done!
```### Documentation
See the [Github wiki](https://github.com/1Computer1/canvas-writer/wiki) for documentation, changelog, and more.