Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
bsprite.js

README.md

bsprite-client

A browser library for working with bsprites

##Public methods

BSprite.getImages Requests a sprite package of images

BSprite.getImages = function(url, callback)

##Usage

Example of loading a named sprite package of images and appending them to the document

var images = BSprite.getImages('http://127.0.0.1:8080/images', function(images){
    for(var i = 0; i < images.length; i++){
        document.body.appendChild(images[i]);
    }
});
You can’t perform that action at this time.