W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2006

[whatwg] proposed canvas 2d API additions

From: Arve Bersvendsen <arveb@opera.com>
Date: Tue, 25 Apr 2006 09:38:32 +0200
Message-ID: <op.s8jziitkbyn2jm@localhost.localdomain>
On Tue, 25 Apr 2006 00:17:36 +0200, Vladimir Vukicevic  
<vladimirv at gmail.com> wrote:

> Arve's example is how I imagined putPixels working -- basically as a
> potential optimization over a bunch of fillRect calls.

Two further clarifications:

1) x and y values for both get/setPixel are both floats.
2) We return a weighted average for getPixel, so if you getPixel(0.5,0.5)  
you get the weighted average of the points 0,0 0,1 1,0 1,1


-- 
Arve Bersvendsen, Opera Software ASA
Received on Tuesday, 25 April 2006 00:38:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:46 UTC