[whatwg] canvas 2d's ellipse

Tab Atkins Jr. jackalmage at gmail.com
Tue Aug 20 16:06:38 PDT 2013


On Tue, Aug 20, 2013 at 3:46 PM, Ian Hickson <ian at hixie.ch> wrote:
> On Tue, 30 Apr 2013, Rik Cabanier wrote:
>> I think the API should look like this:
>>
>> void ellipse(unrestricted double x, optional unrestricted double y,
>> unrestricted double radiusX, optional unrestricted double radiusY, optional
>> unrestricted double rotation, optional unrestricted double startAngle,
>> optional unrestricted double endAngle, optional boolean anticlockwise);
>>
>> with the following behavior:
>> - if radiusY is omitted, it's the same as radiusX
>> - if rotation is omitted, it's equal to 0
>> - if startAngle is omitted, it's equal to 0
>> - if endAngle is omitted, it's equal to 0
>> - if anticlockwise is omitted, it's equal to false
>
> We could do this, sure. How much do people want something like this? Does
> anyone else think it's a good idea?

I can tell you that specifying all of the arguments in SVG's ellipse
path command is rather annoying.  Having good defaults would be a good
thing.

~TJ



More information about the whatwg mailing list