Skip to content

ceruleanlabs/CraftySpriteColor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

SpriteColor for CraftyJS

A CraftyJS component to apply a color to a sprite. Idea of this topic.


##Demo

http://jsfiddle.net/luizbills/ZegWr/

Crafty.sprite(16, "http://craftyjs.com/demos/tutorial/sprite.png", {player:[0,3]});

Crafty.modules({ SpriteColor: 'DEV' }, function () {
    Crafty.e("2D, Canvas, player, SpriteColor")
        .spriteColor("FF0000", 0.5) // red with 50% transparency
});

##License Dual licensed under MIT and GPL.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published