Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect colors #64

Open
Gama11 opened this issue May 26, 2018 · 0 comments
Open

Incorrect colors #64

Gama11 opened this issue May 26, 2018 · 0 comments

Comments

@Gama11
Copy link
Member

Gama11 commented May 26, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant