mneumann
Scenic.FromSVG - Rapid UI prototyping for Scenic
TLDR; Prototype your Scenic UI scenes in Inkscape or other SVG editors, then quickly fire it up in Scenic for display or generate code representing Scenic primitives that you can then hand-modify to your needs.
While it can display SVG already pretty well, by translating SVG to Scenic drawing primitives, either at runtime or compile-time, it’s not intended to be a general purpose SVG viewer.
More information, sources and packages:
Most Liked
mneumann
Hi Eiji,
Thanks a lot for your valuable input.
- A mix “generator” task, right? mix scenic.from_svg.gen …
- SMIL - that sounds like a separate project :). Definitively interesting. Are there any open-source editors that produce SMIL animations?
- Good point. Will add all HTML color codes.
- I will simplify the interface and only expose one public function, and document it. The
Scenic.FromSVG.Pathwas actually intended to be a private module… bu that’s something that Elixir doesn’t have, I guess
- Having separate type for
svgmakes sense!
Thanks again for you input!
axelson
Nice library!
In the past for fun I’ve experimented with SVG parsing for scenic by using nimble parsec. I’m not sure if any of the details will be especially interesting to you but here is the code:
Although I guess I don’t parsed named web colors.







