JuliaGraphics / Luxor.jl

Simple drawings using vector graphics; Cairo "for tourists!"
http://juliagraphics.github.io/Luxor.jl/
Other
575 stars 72 forks source link

SVG with transparent background #286

Closed gpucce closed 8 months ago

gpucce commented 8 months ago

On Pluto It seems that when creating an svg with @svg I can't have it with transparent background. Neither without setting it nor setting it to transparent with background(0, 0, 0, 0). I tried setting fill-opacity:0 by hand in the svg string and it works.

cormullion commented 8 months ago

Hi! This is described in the docs:

Screenshot 2023-11-01 at 15 12 24

and

Screenshot 2023-11-01 at 15 11 07

Actually the @drawsvg doesn't set the background for you, so you could use that. Hope this helps.

gpucce commented 8 months ago

Ah sorry I missed it, thank you so much!