jayz Posted March 19, 2017 Share Posted March 19, 2017 Hi, is it possible to use Hue - Saturation - Lightness (like in Gimp or Photoshop) on Sprite (image)? Thank you. Link to comment Share on other sites More sharing options...
Legomite Posted March 20, 2017 Share Posted March 20, 2017 Using PIXI's ColorMatrixFilter can help you with that https://github.com/photonstorm/phaser/blob/master/v2/filters/pixi/ColorMatrixFilter.js Here's something you can play around with to make it easier to use http://blog.andresgalante.com/RGBAtoFeColorMatrix/ These filters don't work properly in Phaser CE, but work well in Phaser 2.6.2 Kore Springs And if you can figure out how to port this newer version of the filter to Phaser, that'd be awesome, cause it has built in functions such as brightness(), contrast(), hue(), etc that will do most of the work for you instead of doing it by hand http://pixijs.download/dev/docs/PIXI.filters.ColorMatrixFilter.html Link to comment Share on other sites More sharing options...
Recommended Posts