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

[whatwg] [WebApps] canvas transform()/setTransform()

From: Charles McCathieNevile <chaals@opera.com>
Date: Thu, 28 Dec 2006 16:50:49 +0100
Message-ID: <op.tk90yzxcwxe0ny@widsith.lan>
On Thu, 28 Dec 2006 03:02:05 +0100, ????(KUROSAWA, Takeshi)  
<taken.spc at gmail.com>
wrote:

> Dear WHATWG,
>
> Web Application 1.0 adds the transform() and the setTransform() to the
> canvas 2d context.
> The conversion of the arguments of these methods to the matrices is
> described in the section 3.14.6.1.2.
>
>> The transform(m11, m12, m21, m22, dx, dy) method must multiply the 
>> current transformation matrix with the matrix described by:
>> m11 m12 dx
>> m21 m22 dy
>> 0 0 1
>>
>> The setTransform(m11, m12, m21, m22, dx, dy) method...
> - http://www.whatwg.org/specs/web-apps/current-work/#transform
>
> ...the matrix should be
>
> m11 m21 dx
> m12 m22 dy ... (b)
> 0 0 1

In particular, this would make for easy compatibility with SVG  
transformations,
helping authors to copy them from one to hte other format and back.

cheers

Chaals

-- 
Charles McCathieNevile, Opera Software: Standards Group
hablo espa?ol - je parle fran?ais - jeg l?rer norsk
chaals at opera.com Try Opera 9 now! http://opera.com
Received on Thursday, 28 December 2006 07:50:49 UTC

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