node-canvas engine for spritesmith
Instructions on how to do this are provided in the node-canvas wiki.
Additionally, you will need to install node-gyp.
npm install -g node-gyp
Install the module with:
npm install canvassmith
// Load in our dependenciesvar Canvassmith = ;// Create a new enginevar canvassmith = ;// Interpret some images from diskcanvassmith;
This module was built to the specification for spritesmith engines.
Specification version: 2.0.0
createImages methods supports the following types of images:
String- Filepath to image
Object- Vinyl object with buffer for image (uses buffer)
Object- Vinyl object with stream for image (uses stream)
Object- Vinyl object with
nullfor image (reads buffer from provided filepath)
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint using
npm run lint and test via
Copyright (c) 2013 Todd Wolfson
Licensed under the MIT license.