spritefont-loader

0.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i spritefont-loader

Weekly Downloads

0

Version

0.0.2

License

none

Unpacked Size

10.3 kB

Total Files

6

Last publish

Collaborators

  • andormade