Re: [Sugar-devel] [Karma] experimenting w/ canvas, drawImage draws a distorted pic

2009-09-01 Thread Felipe López Toledo
canvas id=myCanvas width=200 height=200/canvas style #mycanvas { width: 200; height: 200; } /style yep, right from http://dev.w3.org/html5/spec/Overview.html#the-canvas-element The intrinsic dimensions of the

[Sugar-devel] [Karma] experimenting w/ canvas, drawImage draws a distorted pic

2009-08-31 Thread Bryan Berry
subzero, http://karma.sugarlabs.org/mainline/experiments/mytest1.html http://git.sugarlabs.org/projects/karma/repos/mainline/blobs/master/experiments/mytest1.html for whatever reason context.drawImage draws the ball image at 2x the specified height. Any idea why? i have added the experiments/

Re: [Sugar-devel] [Karma] experimenting w/ canvas, drawImage draws a distorted pic

2009-08-31 Thread Bryan Berry
apparently, everything gets screwed up when i put the height and width in css but works fine when i put the same values in the canvas tag On Mon, 2009-08-31 at 13:47 +0545, Bryan Berry wrote: subzero, http://karma.sugarlabs.org/mainline/experiments/mytest1.html

Re: [Sugar-devel] [Karma] experimenting w/ canvas, drawImage draws a distorted pic

2009-08-31 Thread Martin Langhoff
On Mon, Aug 31, 2009 at 11:42 AM, Lucian Branesculucian.brane...@gmail.com wrote: I think canvas pixels are different from css pixels. In canvas you get the pixels of the internal rendering engine and with css you get the device-modified pixels. Our pixels are rather special. If you are using