Archive for the ‘animation’ Category

When using canvas, make sure you set the width and height explicitly

Friday, August 27th, 2010

According to this explanation on stackoverflow, it appears that if you set the width and height of your canvas element in css

canvas {

    height: 20px;
    width: 20px;

}

whenever you render vectors on the canvas they will appear stretched as css only sets the container size not the canvas size. So you have to do something like this:


    var canvas = document.getElementById("canvas");
    canvas.setAttribute("width", "20);
    canvas.setAttribute("height", "20);

How. Strange.

Tiny Berlin

Friday, August 20th, 2010

Little Big Berlin from pilpop on Vimeo.

Remember this effect? Perspective control lens is back, and bigger and better.

Cool ad by HP.

Monday, November 9th, 2009

HP “Create Amazing” - Director’s Cut from Keith Loutit on Vimeo.

And those of you who would like to know how it is done tilt-shift perspective manipulation