[whatwg] Canvas and transforms

Hi,

I might have missed something but why isn't there a generic transform 
method for the CanvasRederingContext2D. Currently there are scale, 
rotate and translate. Adding a generic transform might make a few things 
easier.

void translate(in float m11, in float m12, in float m21, in float m22);
void translate(in float m11, in float m12, in float m21, in float m22, 
in float dx, in float dy);

where the arguments are the numbers in the transformation matrix

   m11 m12 dx
( m21 m22 dy )
     0   0  1

dx and dy are 0 when left out

-- 
erik

Received on Friday, 30 December 2005 12:17:36 UTC