svgbob icon indicating copy to clipboard operation
svgbob copied to clipboard

How to make the background transparent

Open QiangF opened this issue 6 years ago • 4 comments
trafficstars

Everywhere except the drawing lines and characters.

QiangF avatar May 10 '19 09:05 QiangF

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

ivanceras avatar May 11 '19 10:05 ivanceras

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

QiangF avatar May 11 '19 12:05 QiangF

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 avatar May 19 '19 12:05 mbarkhau

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

mbarkhau avatar May 19 '19 13:05 mbarkhau