openfl / svg

Provides SVG parsing and rendering for OpenFL and Haxe
MIT License
68 stars 30 forks source link

3-character hex colors not working #31

Closed jcward closed 8 years ago

jcward commented 8 years ago

Here's an apple logo:

<svg viewBox='0 0 90 100' xmlns='http://www.w3.org/2000/svg'>
  <path fill='#AAA' d='M62,0c2,10-9,24-20,24c-3-14,9-22,20-24M5,36c5-8,13-12,21-12c7,0,12,4,19,4c6,0,10-4,19-4c6,0,14,3,19,10c-16,4-15,35,3,39c-7,17-18,27-24,27c-7,0-8-5-17-5c-9,0-11,5-17,5c-7-1-13-7-17-13c-9-10-15-40-6-51' />
</svg>

The fill='#AAA' renders as blue:

image