lyze237 / gdx-TinyVG

TinyVG parser and renderer for libGDX
https://svg-to-tvg-server.fly.dev/
Apache License 2.0
26 stars 3 forks source link

Feature Request: Minimal SVG/TVG viewer #17

Open shoeoffhead opened 2 years ago

shoeoffhead commented 2 years ago

Amazing project. It would be nice if you could write a minimal app to load and display SVG and TVG files (SVG is converted to TVG before display). Maybe add a few render settings one can tweak and see the changes on the fly. Maybe also some transformations. The release could come bundled with a few .svg and .tvg files (part of the .jar). At startup one of those example files could be loaded at random.

lyze237 commented 2 years ago

Hey! Glad you like it!

This is however just a library implementing a file format.

For specs, official examples, and so on you should look at the file formats page here: https://tinyvg.tech/

Here's a web based converter/viewer: https://svgtotvg.herokuapp.com/ - Source

And here are the sdks which are programs you can run on your pc to convert svgs/view tvgs: https://github.com/TinyVG/sdk https://github.com/TinyVG/sdk/pull/5

You can also change some parameters in the sdks. (I didn't implement those in the web based version as all the parameters eat a lot more cpu resources, and that is not a good idea since it's hosted on a free heroku app.)

lyze237 commented 2 years ago

I could however make a simple gwt based project and link it which just loads a couple tvg files and shows them. Similar to what the tests in this repo already do.

shoeoffhead commented 2 years ago

I know it is just an implementation of the file format, but a nice showcase app where you can change a few render settings, do some basic transformation of the rendered TVG files, etc. is always a nice thing to let people see what is possible and tinker with the library.

I just cloned your git locally and am playing around with the lib. I am currently tinkering with your test-cases. A proper showcase-app would be nicer.

A Web-version of a Showcase sounds also nice. A few buttons to switch between different TVG files. Developers could also start this app locally on the desktop after cloning your gdx-TinyVG Github?