- From: Paul LeBeau <paul.lebeau@gmail.com>
- Date: Wed, 12 Mar 2014 02:15:15 +1300
- To: Tavmjong Bah <tav.w3c@gmail.com>
- Cc: www-svg <www-svg@w3.org>, Gavin Kistner <phrogz@me.com>
- Message-ID: <CACfsppAHzHh6MH_ZU+brhQJZj4uLAfj7_N12yaoU_8LmW6zYXQ@mail.gmail.com>
Even without the inner radius setting, you can still produce a vast array of star variants. Here are a few more samples: http://paullebeau.com/svg2/star/star04.svg http://paullebeau.com/svg2/star/star05.svg http://paullebeau.com/svg2/star/star06.svg It is really only the star forms with very small inner radii that you can't reproduce. I don't think that would be a huge loss. Editors like Inkscape that have a feature for producing these sort of shapes will probably generate the paths themselves anyway and not use any new element. I see it primarily as a useful tool for people hand editing SVG or using libraries like d3. Or perhaps these extreme stars could be created using a different new element that generated shapes with rotational and axial symmetry. As for rounding, I considered it also, but excluded it for simplicity. Also because I have a desire for a stroke/path effects feature that would be more general. Something like Android's CornerPathEffect<http://developer.android.com/reference/android/graphics/CornerPathEffect.html> . Paul On 12 March 2014 00:53, Tavmjong Bah <tav.w3c@gmail.com> wrote: > On Mon, 2014-03-10 at 06:47 +1300, Paul LeBeau wrote: > > I actually started with a inner+outer radius approach, but finding a > > way to support both regular and non-regular star shapes got messy and > > complicated. So I went with a simplified approach that still allowed > > a large range of commonly used shapes and also supported both the > > poly-gon and poly-gram star forms. > > > > I like the idea of 'density' but I do thing users will want to change > the inner/outer radius. > > Inkscape has a star/polygon tool that stores parameters in the Inkscape > name space. The star/polygon get's exposed as a path. > > The parameters are: > > * number of sides > * center x > * center y > * r1 > * r2 > * arg1 > * arg2 > * flat sided (polygon) or star shaped > * roundedness > * randomness > > You can see the effect of some of these parameters at: > > http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Shapes-Stars.html > > The SVG WG has talked about a star/polygon element many times, but no > one got around to spec-ing it out. Maybe this will get it done. > > Tav > > > > >
Received on Tuesday, 11 March 2014 13:16:08 UTC