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

[whatwg] Canvas 2d methods

From: Stefan Gössner <stefan@goessner.net>
Date: Sun, 02 Jul 2006 08:41:44 +0200
Message-ID: <44A76AA8.3030500@goessner.net>
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
Received on Saturday, 1 July 2006 23:41:44 UTC

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