[whatwg] Canvas 2d methods

Stefan Gössner stefan at goessner.net
Sun Jul 2 13:47:44 PDT 2006


>>as well as more elegantly in my opinion
>>
>>X.a().b().c();
>>    
>>
>
>The latter, IMHO, is semantically bogus. But that's just a matter of 
>opinion, of course.
>  
>
hmm ...

ctx.scale(2,1)
   .rotate(Math.PI/4)
   .translate(4,-6);

illustrates a sequence of manipulations semantically very well, doesn't it?




More information about the whatwg mailing list