[whatwg] Canvas 2d methods
news at terrainformatica.com
Mon Jul 3 15:01:54 PDT 2006
----- Original Message -----
From: "L. David Baron" <dbaron at dbaron.org>
To: <whatwg at whatwg.org>
Sent: Monday, July 03, 2006 2:48 PM
Subject: Re: [whatwg] Canvas 2d methods
>>On Sunday 2006-07-02 22:47 +0200, Stefan Gössner wrote:
>> hmm ...
>> illustrates a sequence of manipulations semantically very well, doesn't
>In my opinion, this pattern generally makes sense semantically when used
>I don't think this pattern makes sense for mutable objects. It just
>suggests immutability. And making the canvas context objects immutable
>doesn't really make sense without much more significant changes.
"this pattern generally makes sense semantically when used on immutable
For me personally it is close to
context << moveTo(..) << lineTo(...) << arcTo(....);
which is perfectly close to what is going on in reality:
drawing is a stream of graphical commands.
More information about the whatwg