1 bit dithering, created for Flickr April Fools
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
demo.html
dither.js
downtown.jpg

README.md

Y.dither

This is a YUI/canvas implementation of the Atkinson Dither. It also contains an impementation of Floyd-Steinberg dithering, for those that prefer that look. Only supports 1bit.

Usage:

YUI().use('dither', function(Y){
	Y.dither('#main-photo-container img', function(img){
		Y.one('#main-photo-container img').set('src', img);
	});		
})

As used on Flickr for April fools. YUI Module. Released without license, as is, with no guarantee, support or anything else.