[whatwg] Canvas draw quality

Michel Fortin michel.fortin at michelf.com
Sat Oct 21 05:16:19 PDT 2006

Le 21 oct. 2006 à 4:48, Alfonso Baqueiro a écrit :

> I wrote this little page to try the canvas
> http://guia.sytes.net/notas/javascript/biorritmos.html
> Is interesting that the drawed vertical 1px width black lines appear
> as 2px width gray lines (in firefox) I suposse that is a colateral
> effect caused by the antialiasing, so this simple case makes evident
> that we need a method turn on/off the antialiasing.

Or maybe it just means you need to add half a pixel to your  
coordinates instead of drawing directly between two pixels. Although  
rounding everything to the nearest virtual pixel like this is not  
very good for resolution independence.

Michel Fortin
michel.fortin at michelf.com

More information about the whatwg mailing list