Re: [whatwg] Dashed strokes on canvas

2008-01-15 Thread Ian Hickson
On Thu, 17 May 2007, Philip Taylor wrote: I'd probably just add the equations of the curves kind of like: [...] On Fri, 25 May 2007, Philip Taylor wrote: Actually, since I now better understand what B�zier curve means, I'd say something more like The quadraticCurveTo(cpx, cpy, x, y)

Re: [whatwg] Dashed strokes on canvas

2007-05-25 Thread Philip Taylor
On 17/05/07, Philip Taylor [EMAIL PROTECTED] wrote: On 16/05/07, Ian Hickson [EMAIL PROTECTED] wrote: For arc() and arcTo() the definition seems complete, but I'm not familiar enough with graphics theory to know what quadraticCurveTo() and bezierCurveTo() need. Could you suggest some text?

Re: [whatwg] Dashed strokes on canvas

2007-05-17 Thread Martijn
2007/5/17, Ian Hickson [EMAIL PROTECTED]: On Wed, 16 May 2007, David Flanagan wrote: I believe that most of these issues can and should be left to the implementation. If the implementation is allowed to choose whether or not to draw shadows, then I think it is fine to allow the

Re: [whatwg] Dashed strokes on canvas

2007-05-17 Thread Philip Taylor
On 16/05/07, Ian Hickson [EMAIL PROTECTED] wrote: On Thu, 10 May 2007, Philip Taylor wrote: e.g. the curve drawing section should give the equation for computing the points on the curve For arc() and arcTo() the definition seems complete, but I'm not familiar enough with graphics theory to

Re: [whatwg] Dashed strokes on canvas

2007-05-17 Thread Kristof Zelechovski
17, 2007 5:35 AM To: Ian Hickson; David Flanagan Cc: WHAT WG List; Philip Taylor; Henri Sivonen Subject: Re: [whatwg] Dashed strokes on canvas It's not that there's no plan. It's just that the plan is more along the lines of we'll wait and maybe add it later rather than we'll add it now, since

Re: [whatwg] Dashed strokes on canvas

2007-05-17 Thread ddailey
Kristof Zelechovski wrote: Works in IE? IE by MarsSoft? The utility of dashed strokes is something I can get interested in. Observe the sparseness of the JavaScript code involved in http://srufaculty.sru.edu/david.dailey/svg/clock.svg (working in IE, FF Opera) Sorry Chris, I should

Re: [whatwg] Dashed strokes on canvas

2007-05-16 Thread David Flanagan
Ian Hickson wrote: ...which would have to be defined, including error handling logic, including how to handle corners, including how to do dot distribution to have nice symmetry, etc, etc, etc. It's actually quite complex. I believe that most of these issues can and should be left to the

Re: [whatwg] Dashed strokes on canvas

2007-05-16 Thread ddailey
It's not that there's no plan. It's just that the plan is more along the lines of we'll wait and maybe add it later rather than we'll add it now, since there are workarounds and seemingly little demand. Please let us know if you get any input on your blog post. The utility of dashed strokes is

Re: [whatwg] Dashed strokes on canvas

2007-05-16 Thread Ian Hickson
On Wed, 16 May 2007, ddailey wrote: Observe the sparseness of the JavaScript code involved in http://srufaculty.sru.edu/david.dailey/svg/clock.svg (working in IE, FF Opera) compared to the canvas solution someone posted the other day here.

Re: [whatwg] Dashed strokes on canvas

2007-05-15 Thread Ian Hickson
On Wed, 9 May 2007, David Flanagan wrote: There are many styles that aren't supported -- dashes aren't an exception. For example, there's no support for having defined markers repeated around the stroke. Similarly, we don't havenative support for rounded corners, or for many shapes

Re: [whatwg] Dashed strokes on canvas

2007-05-10 Thread Henri Sivonen
On May 9, 2007, at 22:51, Philip Taylor wrote: The common graphics APIs (at least Cairo, Quartz and java.awt.Graphics, and any SVG implementation) all have dashes specified by passing an array of dash lengths (alternating on/off), so that should be alright as long as you define what units it's

Re: [whatwg] Dashed strokes on canvas

2007-05-09 Thread David Flanagan
Ian Hickson wrote: On Wed, 17 May 2006, David Flanagan wrote: What surprises me about the omission of dashed lines is that every graphics API I'm familiar with (Xlib, PostScript, Java 2D) supports dashed lines. Unless there is some important platform out there that does not support them in

Re: [whatwg] Dashed strokes on canvas

2007-05-09 Thread Philip Taylor
On 09/05/07, David Flanagan [EMAIL PROTECTED] wrote: Ian Hickson wrote: On Wed, 17 May 2006, David Flanagan wrote: What surprises me about the omission of dashed lines is that every graphics API I'm familiar with (Xlib, PostScript, Java 2D) supports dashed lines. Unless there is some

Re: [whatwg] Dashed strokes on canvas

2007-05-09 Thread David Flanagan
Philip, You have a reasonable point. I still think that an implementation would be trivial, but you're right that there is more complexity for the specification than simply defining one more method API. On the other hand, I think it is legitimate to take the SVG-Tiny route and leave

Re: [whatwg] Dashed strokes on canvas

2007-05-09 Thread Philip Taylor
On 09/05/07, David Flanagan [EMAIL PROTECTED] wrote: Philip, You have a reasonable point. I still think that an implementation would be trivial, but you're right that there is more complexity for the specification than simply defining one more method API. On the other hand, I think it is

[whatwg] Dashed strokes on canvas

2007-05-07 Thread Ian Hickson
On Wed, 17 May 2006, David Flanagan wrote: What surprises me about the omission of dashed lines is that every graphics API I'm familiar with (Xlib, PostScript, Java 2D) supports dashed lines. Unless there is some important platform out there that does not support them in the underlying