logoalt Hacker News

Dithering with CSS

22 pointsby speckxlast Monday at 3:26 PM7 commentsview on HN

Comments

rpastuszaktoday at 10:58 AM

I’ve messed with a similar idea here: https://untested.sonnet.io/notes/just-some-innocent-gradient...

(The linked web app doesn’t work on mobile in portrait mode, sorry!)

The biggest issue with this trick is that different engines calculate the filters differently, thus turning an okay-ish image into something that looks like a glitch.

nextlevelwizardtoday at 9:27 AM

Is this actually dithering?

I have dabbled with some dithering algorithms and while this is way faster than my naive js implementations, this looks pretty bad

ramon156today at 8:58 AM

Is this what they use at schools before they hand it over to the printer? /j

show 1 reply
kelsolaartoday at 9:27 AM

It feels and looks like threshold-quantized Perlin rather than actual proper dithering. Cool stuff that said!

binaryturtletoday at 9:18 AM

I have to admit I don't think it's visually very appealing like that. It looks more like some sort of error/ glitch. Maybe my old Firefox does it weirdly?

AntiUSAbahtoday at 9:58 AM

The image quality is so bad, I don't get it?