nanosvg
nanosvg copied to clipboard
Question/tutorial
Hello Mikko, @alecive again. I am really excited about this library, but I am struggling with trying to understand what it can and it cannot do (and how to eventually extend it).
So, beginning with the basics:
- how can I rotate and translate a
NSVGshape
? Can I use something likensvg__parseRotate
andnsvg__parseTranslate
? If so, how can I use them? - If I have two
NSVGimage
s, what would be the best way to combine them in one singleNSVGimage
with theNSVGshape
s from both?
Thank you!
- It will be good to implement shape->xform to apply during rasterising. It requires many redesigning.
- For example shape1->next = p->image->shapes; p->image->shapes = shape1; shape2->next = p->image->shapes; p->image->shapes = shape2;