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.
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.