All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Understanding Atkinson Dithering: Classic Macintosh 1-Bit Filter Implementation

By

nvahalik

11mo ago· 1 min readen

Summary

An implementation of the classic Macintosh 1-bit filter, Atkinson Dithering changes pixels to black or white based on comparison to 50% grey and distributes the difference to neighboring pixels. It utilizes Canvas, Drag and Drop events, WebWorkers, and the FileReader API.

Key quotes

· 3 pulled
It compares every pixel to 50% grey, then changes them to either black or white.
The rendered image can be rightclicked-saved.
This code uses Canvas, Drag and Drop events, WebWorkers and the FileReader API so you'll need the newest
Snippet from the RSS feed
This is an implementation of the classic Macintosh 1-bit filter, as used by Hyperdither and HyperScan originally.

You might also wanna read