Fork me on GitHub

8Bit

8Bit is a Javascript module that transforms images into pixelated versions in canvas.

Before

js logo

After

Using factor 10

Before

surfer

After

Using factor 20

Usage Example

HTML

<canvas id="canvas"></canvas>
            

Javascript

var img = new Image();
img.onload = function () {
    eightBit(document.getElementById('canvas'), img, 10);
};
img.src = 'http://foobar.com/some_image.jpg';