phaser-ce icon indicating copy to clipboard operation
phaser-ce copied to clipboard

Adaptability enhancement: daltonization filter for people with colorblindness

Open jgordon510 opened this issue 4 years ago • 1 comments

I work for a puzzle company which uses Phaser CE in our games. We wanted a way to implement daltonization, which is an algorithm to compensate for the three major types of colorblindness.

You can read more about it here: http://www.daltonize.org/2010/05/lms-daltonization-algorithm.html

I created a phaser filter class and adapted the algorithm to work with a shader. I have a running example here with code: https://replit.com/@jgordon510/daltonizer-prototype#script.js

I'd be happy to do a pull request if you're interested in implementing some version of it into the codebase. I know these things are usually done as plugins, but since it's an accessibility enhancement, I thought you might be interested in incorporating it into the project itself.

jgordon510 avatar Mar 29 '21 18:03 jgordon510

You're welcome to add it to filters.

samme avatar Apr 21 '21 22:04 samme