mneumann

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:

hex.pm

Most Liked

mneumann

mneumann

Hi Eiji,

Thanks a lot for your valuable input.

  1. A mix “generator” task, right? mix scenic.from_svg.gen …
  2. SMIL - that sounds like a separate project :). Definitively interesting. Are there any open-source editors that produce SMIL animations?
  3. Good point. Will add all HTML color codes.
  4. I will simplify the interface and only expose one public function, and document it. The Scenic.FromSVG.Path was actually intended to be a private module… bu that’s something that Elixir doesn’t have, I guess :slight_smile:
  5. Having separate type for svg makes sense!

Thanks again for you input!

axelson

axelson

Scenic Core Team

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.

Where Next?

Popular in Libraries Top

marcuslankenau
I feel kind of stuck with the absence of a proper xml library for Elixir. Currently I use SweetXML which was ok for me more or less to pa...
New
deadtrickster
I’ve just released stable versions of my Prometheus Elixir libs: Elixir client [docs]; Ecto collector [docs]; Plugs instrumenter/Export...
New
kelvinst
Hey everyone! Well, we made this lib a while ago and now we decided to finally go out and public with it! It’s a tool for creating and m...
New
achempion
Hi, I would like to tell about my initiative to further maintain and develop Waffle project which is the fork of Arc library. The progre...
New
michalmuskala
Hello everybody. I have just released Jason - a new JSON library. You might be wondering, why do we need a new library? The primary foc...
New
aditya7iyengar
Rummage.Ecto and Rummage.Phoenix provide ways to perform Searching, Sorting and Pagination over Ecto queries and Phoenix collections. Fo...
New
zorbash
I created Kitto a framework for dashboards inspired by Dashing. [demo] The distributed characteristics of Elixir and the low memory foo...
New
OvermindDL1
I created a new library (rather I pulled out a couple files from my big project), it manages an operating system PID file for the BEAM. ...
New
gabrielpoca
Hello everyone! I want to share with you something that I’m really proud of: https://stillstatic.io/ Still is a static site builder for...
New
wojtekmach
Hey everyone! Req is an HTTP client for Elixir that I’ve been working on for quite some time. There is already a lot of HTTP clients out...
New

Other popular topics Top

JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 42633 214
New
AstonJ
by Lance Halvorsen Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
460 27162 124
New
magnetic
Hey :wave:t3: Elixir community, I’ve been learning Elixir, and working on some side projects. My editor of choice is VSCode, and althoug...
New

Sub Categories:

We're in Beta

About us Mission Statement