Archive for August, 2010

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.

switching off pressure sensitivity in GIMP when using a bamboo touch tablet

Friday, August 20th, 2010

In the toolbox, select the pencil or brush tool and open up the Brush Dynamics section, by clicking on the ‘plus (+)’ symbol. Then deselect ‘Pressure:’ under the ‘opacity’ column.

how to not get annoyed[/caption]