Jump to content

hue/saturation/lightness


jayz
 Share

Recommended Posts

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 :D

http://pixijs.download/dev/docs/PIXI.filters.ColorMatrixFilter.html

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...