Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openfl/svg
Provides SVG parsing and rendering for OpenFL and Haxe
https://github.com/openfl/svg
haxe openfl scalable-vector-graphics svg
Last synced: about 2 months ago
JSON representation
Provides SVG parsing and rendering for OpenFL and Haxe
- Host: GitHub
- URL: https://github.com/openfl/svg
- Owner: openfl
- License: mit
- Created: 2012-08-18T04:19:46.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-05-29T07:21:35.000Z (over 1 year ago)
- Last Synced: 2024-10-30T00:55:01.180Z (2 months ago)
- Topics: haxe, openfl, scalable-vector-graphics, svg
- Language: Haxe
- Homepage:
- Size: 461 KB
- Stars: 68
- Watchers: 9
- Forks: 30
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE.md) [![Haxelib Version](https://img.shields.io/github/tag/openfl/svg.svg?style=flat&label=haxelib)](http://lib.haxe.org/p/svg) ![build status](https://api.travis-ci.org/openfl/svg.svg)
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:
```xml
```
Usage
=====```haxe
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`.