You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@svgbeginbackground(1,0,0,0.5)
setcolor(1,0,0,0.5) # note same color with same alpha valuecircle(Point(0, 0), 100, action =:fill)
end200200"circle.svg"
produces svg
<?xmlversion="1.0"encoding="UTF-8"?>
<svgxmlns="http://www.w3.org/2000/svg"xmlns:xlink="http://www.w3.org/1999/xlink"width="200pt"height="200pt"viewBox="0 0 200 200"version="1.1">
<gid="surface362">
<rectx="0"y="0"width="200"height="200"style="fill:rgb(100%,100%,100%);fill-opacity:1;stroke:none;"/>
<rectx="0"y="0"width="200"height="200"style="fill:rgb(100%,0%,0%);fill-opacity:0.5;stroke:none;"/>
<pathstyle="stroke:none;fill-rule:nonzero;fill:rgb(100%,0%,0%);fill-opacity:0.5;"d="M 200 100 C 200 155.226562 155.226562 200 100 200 C 44.773438 200 0 155.226562 0 100 C 0 44.773438 44.773438 0 100 0 C 155.226562 0 200 44.773438 200 100 Z M 200 100 "/>
</g>
</svg>
Ah, so the background color is transparent on top of a white background. Sorry, I'm a bit slow. In any case, why is the white (non-transparent) background needed?
produces svg
The line
makes the background non-transparent
The text was updated successfully, but these errors were encountered: