Skip to content

Plugin for ImpactJS to easily enable 'tinting' images using any color

Notifications You must be signed in to change notification settings

deakster/impact-imageblender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Info

Tint your images in ImpactJS on the client side. Uses the 'multiply' blending mode to colourize each pixel.

Example

(example sprite from http://opengameart.org/content/zombies-skeletons)

Usage

  • Copy imageblender.js into your lib/game folder
  • In your game's module, add an entry to the require section for the module 'game.imageblender'
  • Append #hexcolor to the path in any ig.Image or ig.AnimationSheet. For example, rather than loading 'media/monster.png' you can change it to 'media/monster.png#FF0000' (Or '#F00') to tint it red.

For more info see this forum post

About

Plugin for ImpactJS to easily enable 'tinting' images using any color

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •