I worked on a project last year that required applying a color halftone filter to uploaded user photos. After a quick search on google, the only thing I found was a webGL shader but what I needed was a filter for 2D canvas, even if it would be performing much slower. So I finally had to write the filter myself.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
js/tsunami
README.md
index.html

README.md

color-halftone-filter

I worked on a project last year that required applying a color halftone filter to uploaded user photos. After a quick search on google, the only thing I found was a webGL shader but what I needed was a filter for 2D canvas, even if it would be performing much slower. So I finally had to write the filter myself.

Please remember that the smaller the dots, the longer it will take to render.