Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 603 Bytes

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.

Jump to Line
Something went wrong with that request. Please try again.