Description Usage Arguments Value Examples
The SVG()
function is the entry point for building an SVG from the ground
up. We can provide predefined height
and width
attributes that define
the canvas size for the SVG. From here, we would want to use functions that
add elements to the SVG object (e.g., svg_rect()
, svg_circle()
, etc.) and
thus progressively build the graphic.
1 2 3 4 5 6 7 8 9 10 |
width, height |
The width and height attributes on the top-level |
viewbox |
An optional set of dimensions that defines the SVG |
title |
The |
desc |
The |
incl_xmlns |
Should the |
oneline |
An option to compress the resulting SVG tags such that they are reduced to one line. |
anim_iterations |
How many should an SVG animation (if defined by use of
the |
An svg
object.
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.