-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Threshold Filter #34
Comments
Would welcoming a PR for this. Here's a guide to adding new filters to this repo: https://github.com/pixijs/pixi-filters/wiki/Adding-Filters |
I read the API document of flash about threshold : http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#threshold() . I think it's easy. So I decide name it
|
I'm wrong . it's not easy. because glsl no Bitwise Operations. |
Threshold can be easily achieved with the ColorMatrixFilter from PIXI. |
Threshold for all operations is not easy. BUT! |
So, only for src == color with replacement onto 0 or FFFFFFFF Not good choice :) |
OK, maybe I've misunderstood something, I don't know how threshold from Flash work. What I meant is that color threshold like the one used in GIMP or Photoshop can be easily achieved with color matrix, where each color is converted to black or white depending on its brightness. No bitwise operations needed. |
Hello!
As per pixijs/pixijs#2297 it would be nice to have a threshold filter with a configurable threshold point. This has applications in a few other effects (bloom-like effects, faux-metaball effects, image processing).
Thank you!
The text was updated successfully, but these errors were encountered: