Add a basic "Dithering" option to renderImage() and renderVideo()See original GitHub issue
Rendering Images and Videos would likely look better if we were to pass the pixel data through a dithering algorithm (see https://en.wikipedia.org/wiki/Dither).
We could probably pull in a library or basic algorithm off the shelf, add it to renderMediaAsCheckboxes.js, and expose it as an option in the
renderVideo() plugins (either as a boolean, or—if there are multiple options—as a string/enum).
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top GitHub Comments
The original library is not that complex either, we (well… you, sorry 😃 ) can just copy the algorithm over here to better fit the rest of the code
@karelbilek, thanks! I did what you said, merged your PR, and did a follow-up commit where i copied over the algorithms and made a few other changes to preserve backwards-compatibility. You can see a demo here: https://www.bryanbraun.com/checkboxland/docs/demos/webcam-test/
Thanks for all the help with this. 🏆