0.0.2 • Published 6 years ago

spritefont-loader v0.0.2

Weekly downloads
6
License
-
Repository
github
Last release
6 years ago

npm version Build Status Dependency Status Dev dependency Status

spritefont-loader

Loads sprite fonts into the browser that were generated with the sprite font generator.

Installation

This module is distributed via npm:

npm install spritefont-loader

Usage

import SpritefontLoader from 'spritefont-loader';

const options = { rows: 8, cols: 4, colors: [#ffffff, #00000]};
const spriteFont = SpritefontLoader.load('spritefont.png', options);

This code is released under the MIT license, feel free to do whatever you want with it.