Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

openfl/svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

189 Commits

Repository files navigation

MIT License Haxelib Version Build Status

SVG

Provides SVG parsing and rendering

Installation

You can easily install SVG using haxelib:

haxelib install svg

To add it to a Lime or OpenFL project, add this to your project file:

<haxelib name="svg" />

Usage

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/icon.svg"));
		svg.render (graphics);
		
	}
	
	
}

Development Builds

Install the haxelib from GitHub:

haxelib git svg https://github.com/openfl/svg

To return to release builds:

haxelib dev svg

Running SVG's Tests

svg includes some tests that render SVGs and make sure they look the way they're supposed to. These tests run automatically with each build/commit. For more information about running them manually, see test/README.md.

About

Provides SVG parsing and rendering for OpenFL and Haxe

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 17

Languages

AltStyle によって変換されたページ (->オリジナル) /