openfl / svg

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

Incorrect colors #64

Open Gama11 opened 6 years ago

Gama11 commented 6 years ago
package;

import format.SVG;
import openfl.display.Sprite;
import openfl.Assets;

class Main extends Sprite {
    public function new () {
        super();
        var svg = new SVG(Assets.getText("assets/flixel-different-colors.svg"));
        svg.render(graphics, 0, 0, 150, 150);
    }
}

The result looks like this:

While Inkscape and Chrome render it with the correct colors:

Tested with OpenFL 8.1.1, Lime 6.3.1 and SVG 1.1.2.

SVG asset used.