Skip to content

Plugin for ImpactJS to replace a color in images and spritesheets on the client side

Notifications You must be signed in to change notification settings

klase/impact-replacecolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

impact-replacecolor

Plugin for ImpactJS to replace a color in images and spritesheets. Based on https://raw.github.com/deakster/impact-imageblender

Info

Replaces a color in an image or a spritesheet.

Example

Usage

  • Copy replacecolor.js into your lib/plugins folder
  • Add 'plugins.replacecolor' to the requires section in your game module
  • When instantiating a new animation or image, append the path with the hex color you want followed by the color to be replaced: new ig.AnimationSheet( 'media/player.png#ff0000#00ff4e', 64, 64 )

About

Plugin for ImpactJS to replace a color in images and spritesheets on the client side

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published