W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2005

[whatwg] drawing API

From: Stuart Parmenter <stuartp@gmail.com>
Date: Mon, 7 Feb 2005 15:16:14 -0800
Message-ID: <a8d4ef520502071516284b02c4@mail.gmail.com>
On Fri, 4 Feb 2005 10:48:32 -0500, Oliver Steele
<steele at laszlosystems.com> wrote:
> How about using a single variadic curveTo() method?:
>    void curveTo(in float cpx, in float cpy, in float x, in float y); //
> quadratic bezier
>    void curveTo(in float cp1x, in float cp1y, in float cp2x, in float
> cp2y, in float x, in float y); // cubic bezier
> A JavaScript implementation of curveTo could distinguish these based on
> the value of arguments.length.

Using varargs should be avoided in IDL if possible as it is a language
specific feature.  There are also people shipping with the above API
so I'd prefer to not see it change.  Cubic may have been a better name
than bezier for it, but I think it is minor.

Received on Monday, 7 February 2005 15:16:14 UTC

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