I wrote a simple JavaScript implementation for Floyd-Steinberg-Dithering with a custom color palette. I did it for a private EPD project and wanted to share. Maybe someone else