[whatwg] Canvas 2d methods
Stefan Gössner
stefan at goessner.net
Sat Jul 1 23:41:44 PDT 2006
Benjamin Joffe wrote:
> Each of the methods defined for the canvas 2d context return null. I
> think
> it would be very convenient if instead they would return a reference
> to the
> 2d context for that canvas. This would allow writing such code as
> ctx.fill().stroke()
> or ctx.moveTo(0,0).lineTo(10,10). This is how many of the native
> string and
> array methods work in javaScript.
>
I strongly agree and second this.
--
Stefan Gössner
http://goessner.net
More information about the whatwg
mailing list