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

[whatwg] Canvas line styles comments

From: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Date: Sat, 2 Feb 2008 21:20:34 +0100
Message-ID: <000f01c865d9$12692b50$1a01080a@POCZTOWIEC>
A pair cannot be consecutive unless it follows after another pair, 
which would be irrelevant anyway.

The rounding arc should be chosen 
so that it is not contained in the convex hull of the stroke path segments 
terminated at the points where the arc begins.

Chris

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Philip Taylor
Sent: Saturday, February 02, 2008 8:48 PM
To: Ian Hickson
Cc: WHATWG
Subject: Re: [whatwg] Canvas line styles comments

Some comments on the newly modified version:


[snip]


"A join exists at any point in a subpath shared by two consecutive
pairs of lines." - should be "two consecutive lines" or "a consecutive
pair of lines".


[snip]


"The round value means that a filled arc connecting the two corners on
the outside of the join, with the diameter equal to the line width and
the origin at the point of the join, must be rendered at joins." - if
I was being pedantic (which I am) I'd say there's two possible arcs
connecting those two corners (one clockwise, one anticlockwise), so it
should specify which one is meant. But I don't know how to easily say
that, and an implementor would have to be silly to do it the wrong
way, so maybe a precise definition isn't needed.

Should lineJoin='round';moveTo(0,0);lineTo(100,0);lineTo(0,0);stroke()
draw a semicircle at (100,0) pointing rightwards? There is no "outside
of the join" there, so the spec doesn't say what should happen.


[snip]

-- 
Philip Taylor
excors at gmail.com
Received on Saturday, 2 February 2008 12:20:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:39 UTC