1. Describe your reason for requesting this feature. What problems are you running into?
-- It would be nice to import monotone sprites for tiles, that have some color tolerance (not just pure black / white).
2. How would this request improve your experience with using Pulp?
-- Allows for nicer looking asset packs and supports new users.
3. Include any other details you have relating to this request.
--- Please see details here: Sprite Not Importing Correctly! - #16 by acedent
In short, in the function importPixels
from the main pulp.xxxx.js
script, please change the logic from:
imageData[j]==0?1:0
to
imageData[j]<128?1:0
To threshold the Red channel at 127.
Thanks!