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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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