Hello,

I came across your library and am hoping to use it in a game of mine. The 
README says that linearGradient is supported, and while investigating it seems 
there's at least some code for it. However when I try to use it, like in this 
simple example:

<svg>
 <defs>
    <linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">
      <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" />
      <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
    </linearGradient>
  </defs>
  <ellipse cx="200" cy="70" rx="85" ry="55" fill="url(#grad1)" />
</svg>

I get the following output from the test program:

svgtiny_find_gradient: id "grad1"
linear_gradient_stop_count 0
viewbox 0 0 1000 1000
fill none stroke none stroke-width 1 path 'M 285 70 C 285 100.376 246.944 125 
200 125 C 153.056 125 115 100.376 115 70 C 115 39.6243 153.056 15 200 15 C 
246.944 15 285 39.6243 285 70 Z ' 

It doesn't seem to be finding any gradient stops? I'm not really sure. Can 
anyone suggest if linearGradients are supported and if so how to make them 
work? Thanks!

Trent

Reply via email to