ivanceras / svgbob

Convert your ascii diagram scribbles into happy little SVG
http://ivanceras.github.io/svgbob-editor/
Apache License 2.0
3.91k stars 112 forks source link

How to make the background transparent #40

Open QiangF opened 5 years ago

QiangF commented 5 years ago

Everywhere except the drawing lines and characters.

ivanceras commented 5 years ago

You can use Grid::from_str method and passed a Setting with transparent for the background_color

QiangF commented 5 years ago

It would be nice if you can add a command line option.

mbarkhau commented 5 years ago

I also ran into this just now and am using svgbob via the cli. I'm just going to post-process (ie. string replacement) the svg output for now, but it would be great to have --background-color and --stroke-color as cli options.

mbarkhau commented 5 years ago

Actually, perhaps the more abstract names --bg-color and --fg-color would make more sense.