W3C home > Mailing lists > Public > www-svg@w3.org > January 2013

Re: fancy lines

From: Rik Cabanier <cabanier@gmail.com>
Date: Sat, 5 Jan 2013 11:40:06 -0800
Message-ID: <CAGN7qDDVfbxsBgsvaVb3Am7R7KJNmUQXOHZknXSQuzzfb5AftQ@mail.gmail.com>
To: Brenton Chapin <bzipitidoo@gmail.com>
Cc: www-svg@w3.org
A couple of weeks ago, I asked if there was ever a request for border
brushes. [1]
Basically, you draw a pattern cell and this cell is distorted along the
curve. The cell is either stretched or tiled (like CSS border images)

In your case, the cell would contain a double line or one wave.


1: http://lists.w3.org/Archives/Public/www-svg/2012Dec/0043.html

On Thu, Jan 3, 2013 at 10:45 PM, Brenton Chapin <bzipitidoo@gmail.com>wrote:

> Greetings list.  I dabble with SVG and am still trying to figure out what
> it can do.
> Stroke-dasharray allows the drawing of many kinds of dashed lines.  Is
> there any way to draw such things as a double line, tapered line, or a wavy
> line, with a single use of a path or line element?  The SVG documentation
> says patterns can be used for strokes, but I haven't been able to get that
> to work.  There's an example of a pattern used for a fill, but no example
> for a stroke.
> Another idea was <tspan dy="-1"> and <tspan dy="1"> for a double line,
> except tspan only works on text.
> Meantime, what does work for a double line is drawing a thin line in the
> background color on top of a thick line.
> --
> http://brentonchapin.dyndns.info
Received on Saturday, 5 January 2013 19:40:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:40 UTC