XylotrechusZ
�
� h� � � � d Z ddlmZmZ eZdZdZdZdZddlm Z dd l
mZ G d
� de� � Z
e
d� � Z e
d
� � Z e
d� � Z e
d� � Z e
d� � Z e
d� � Z e
d� � Z e
d� � Z e
d� � Z e
d� � Z e
d� � Z e
d� � Z e
d� � Z e
d� � ZdS )ar
A Python library to create SVG drawings.
SVG is a language for describing two-dimensional graphics in XML. SVG allows
for three types of graphic objects: vector graphic shapes (e.g., paths
consisting of straight lines and curves), images and text. Graphical objects
can be grouped, styled, transformed and composed into previously rendered
objects. The feature set includes nested transformations, clipping paths,
alpha masks, filter effects and template objects.
SVG drawings can be interactive and dynamic. Animations can be defined and
triggered either declarative (i.e., by embedding SVG animation elements in
SVG content) or via scripting.
.. seealso:: http://www.w3.org/TR/SVG11/intro.html#AboutSVG
a simple example::
import svgwrite
dwg = svgwrite.Drawing('test.svg', profile='tiny')
dwg.add(dwg.line((0, 0), (10, 0), stroke=svgwrite.rgb(10, 10, 16, '%')))
dwg.add(dwg.text('Test', insert=(0, 0.2)))
dwg.save()
SVG Version
-----------
You can only create two types of SVG drawings:
* *SVG 1.2 Tiny Profile*, use Drawing(profile= ``'tiny'``)
* *SVG 1.1 Full Profile*, use Drawing(profile= ``'full'``)
� )�__version__�versionzmozman <[email protected]>zManfred Moitziz[email protected] 2014-2019� )�Drawing)�rgbc �&