Skip to content

Vortex2Oblivion/flxsvg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flxsvg

OpenFL SVG Render support for HaxeFlixel.

Installation

Via haxelib:

haxelib install flxsvg

Via git for the latest updates:

haxelib git flxsvg https://github.com/Vortex2Oblivion/flxsvg

Usage

package;

import flixel.FlxState;
import openfl.utils.Assets;
import flxsvg.FlxSvgSprite;

class PlayState extends FlxState
{

	var svg:FlxSvgSprite;

	override public function create()
	{
		super.create();
		svg = new FlxSvgSprite(Assets.getText("assets/images/HaxeFlixel.svg"));
		add(svg);
	}
}

Licensing

flxsvg is made available under the MIT License. Check LICENSE for more information.