- From: Paul LeBeau <paul.lebeau@gmail.com>
- Date: Sat, 14 Sep 2013 02:19:34 +1200
- To: www-svg <www-svg@w3.org>
- Message-ID: <CACfsppDjiWyVVZULQHyoGY3jNLuSrnU+Bf9Bopxip_vfH1E1=w@mail.gmail.com>
Percentages work for stopUnits="pathLength", but not "pathIndex" I guess. I am not married to the idea of re-using <stop> if that is going to be a problem. I also just noticed a couple of broken things in my sample. I'll try again. <?xml version="1.0"?> <svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns=" http://www.w3.org/2000/svg" version="1.1" width="450px" height="450px" viewBox="0 0 450 450"> <defs> <strokeProfile id="swirl" stopUnits="pathIndex" strokeUnits="userSpaceOnUse" interpolationMethod="linear"> <stop offset="0" stroke-width="4"/> <stop offset="2" stroke-width="32"/> <stop offset="4" stroke-width="16"/> <stop offset="5" stroke-width="10"/> <stop offset="6" stroke-width="24"/> <stop offset="8" stroke-width="4"/> </strokeProfile> </defs> <g fill="none" stroke-width="url(#swirl)"> <path d="M 375,225 C 375,180 285,195 240,240 C 195,285 180,375 225,375 C 270,375 255,285 210,240 C 165,195 75,180 75,225 C 75,270 165,255 210,210 C 255,165 270,75 225,75 C 180,75 195,165 240,210 C 285,255 375,270 375,225 Z" /> </g> </svg> On 13 September 2013 21:24, Robert Longson <longsonr@gmail.com> wrote: > Since stop offsets can take percentages what would percentages mean for > the two units cases you propose? > > If percentages are meaningless you need a different element than stop (in > fact I'd rather see a different element name even if you can shoehorn > percentages in here). > > Robert. >
Received on Friday, 13 September 2013 14:20:21 UTC