Skip to content

c-g-dev/heaps-svg-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heaps-svg-lite

A basic SVG renderer for Heaps. Only for drawing vector paths -- does not implement all of the advanced features of the SVG format, of which they are many.

haxelib install heaps-svg-lite

As a benchmark of the scope of the renderer, here it is drawing all of the feathericon.com open source icons:

https://c-g-dev.github.io/heaps-svg-lite/bin/

Usage

var g = new Graphics();
s2d.addChild(g);

var s = new SvgRenderer();
s.setUnitSize(5); //the "scale" of the rendering. 
//You could just scale the graphics object, but with heaps graphics drawing you get higher fidelity drawing large and scaling down
//because the curve sampling is decided at draw time
s.render(content, g);

About

SVG renderer for Heaps.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published