All Projects → openfl → svg

openfl / svg

Licence: MIT license
Provides SVG parsing and rendering

Programming Languages

haxe
709 projects

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. To run them manually, run haxe test.hxml. For more information, check README.md in test.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].