Apply styles to SVG elements
masterMost drawing functions in SVGo accept an optional variadic argument s ...string to apply styles. These style strings follow the SVG standard and can be provided in two formats:
- Semicolon-delimited name:value pairs:
"fill:none; opacity:0.3" - Attribute-style name="value" pairs:
fill="none" opacity="0.3"
Example usage in a function call:
Circle(x, y, r, "fill:red; stroke:black")