HxSvg
Work-in-progress proof-of-concept SVG library for Haxe. Based on NME/OpenFL svg solutions, but decoupled from flash drawing api. Runs on C# and Java targets. Can be used for Cairo rendering.
Install / Use
/learn @cambiata/HxSvgREADME
HxSvg
Work-in-progress proof-of-concept SVG library for Haxe. Based on NME/OpenFL svg solutions, but decoupled from flash drawing api. Runs on all major Haxe targets, including C# and Java.
The SVG graphic information is abstracted to a list of graphic commands:
enum GraphicCommand
{
size(inWidth:Float, inHeight:Float);
beginGradientFill(grad:Gradient);
beginFill(color:Int, alpha:Float);
endFill;
lineStyle(style:LineStyle);
endLineStyle;
moveTo(inX:Float, inY:Float);
lineTo(inX:Float, inY:Float);
curveTo(inCX:Float, inCY:Float, inX:Float, inY:Float);
renderText(text:Text);
}
This can be interpreted/transformed for different targets. For example can cubic bezieer (used by flash drawing API) information be transformed to quadratic bezieers used by Cairo API.
Status
- No actual rendering, except for experimental commands-to-cairo stuff.
- Simple neko/cairo and C++/cairo examples - example-cairo/
Credits
- Hugh Sanderson and Joshua Granick for all core code
- Carlos Ballesteros Velasco for Haxe-Cairo
Screenshot
Actual pdf output from the commands-to-cairo renderer, using Haxe-Cairo:
Related Skills
node-connect
338.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.6kCommit, push, and open a PR

