Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

1 bit dithering, created for Flickr April Fools

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 demo.html
Octocat-spinner-32 dither.js
Octocat-spinner-32 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.

Something went wrong with that request. Please try again.