Skip to content

Atkinson dithering example. The classic Macintosh 1-bit filter, as used by HyperDither.

License

Notifications You must be signed in to change notification settings

miguno/canvas-atkinson-dither

 
 

Repository files navigation

Atkinson dithering example

The classic Macintosh 1-bit filter, as used by HyperDither.

This project was originally created 2010-2016 by @gazs (sources, live demo).

How it works

Compares every pixel to 50% grey, then changes them to either black or white. The difference between the input and the output is then distributed to the neighbouring pixels as follows (X is the current pixel):

     X  1/8 1/8
1/8 1/8 1/8
    1/8

Example screenshot:

Dithering example

How to run locally

Requires npm.

Start a local web server to run the demo app:

./start.sh

Implementation

This code uses Drag and Drop events, WebWorkers, and the FileReader API.

About

Atkinson dithering example. The classic Macintosh 1-bit filter, as used by HyperDither.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 51.4%
  • CSS 46.5%
  • Shell 2.1%