1.0.1 • Published 7 years ago
ebabel-text-sprite v1.0.1
ebabel-text-sprite
Create a 2D text sprite that can be added to any THREE.js mesh.
Module install and usage in your game
Install
npm install --save ebabel-text-spriteUsage
const { textSprite } = require('ebabel-text-sprite');
const result = textSprite({
THREE,
canvas: document.createElement('canvas'),
text: 'Ignominous Imp',
});Development of this module
Fork this repository on Github, git clone your repository, checkout the develop branch, and when you are done, submit a pull request from your repository develop branch to this repository develop branch.
- fork this repository on github.com
- git clone your forked repository.
- git checkout develop
First step when developing
npm installRun linting and unit tests
npm testAn html coverage report is to be found in the coverage folder.
Generate documentation
npm run jsdocThe generated documentation is to be found in the docs folder.