Quartz.SVG (Quartz v0.8.1)
View SourceUtilities to work with SVG elements.
This is made public in case users want to create their own sketches, as a sketch needs to know how to render itself into SVG.
Summary
Functions
SVG <circle/> element.
Render a full document into a binary.
Render a full document into an iolist.
SVG <g/> element.
SVG <line/> element.
Build a path.
SVG <rect/> element.
Build a top level SVG element.
SVG <text/> element.
SVG <title/> element.
SVG <tspan/> element.
Escapes the given HTML to iodata.
Types
Functions
SVG <circle/> element.
Render a full document into a binary.
Render a full document into an iolist.
SVG <g/> element.
SVG <line/> element.
Build a path.
SVG <rect/> element.
Build a top level SVG element.
SVG <text/> element.
SVG <title/> element.
This element is not rendered but is very useful for debugging. It can be used to show properties of the containing element.
SVG <tspan/> element.
Escapes the given HTML to iodata.
iex> Quartz.SVG.xml_escape_to_iodata("foo")
{:escaped_iodata, "foo"}
iex> Quartz.SVG.xml_escape_to_iodata("<foo>")
{:escaped_iodata, [[[] | "<"], "foo" | ">"]}
iex> Quartz.SVG.xml_escape_to_iodata("quotes: \" & \'")
{:escaped_iodata, [[[[], "quotes: " | """], " " | "&"], " " | "'"]}