File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/svgwrite/gradients.pyo
�
oQ+Pc @ s� d Z d d l m Z d d l m Z m Z d d l m Z d e f d � � YZ d e e e f d � � YZ d e f d
� � YZ
d e f d � � YZ d
S( s
Gradients consist of continuously smooth color transitions along a vector
from one color to another, possibly followed by additional transitions along
the same vector to other colors. SVG provides for two types of gradients:
linear gradients and radial gradients.
i����( t BaseElement( t Transformt XLink( t is_stringt
_GradientStopc B s e Z d Z d d d d � Z RS( t stopc K se t t | � j | � | d k r/ | | d <n | d k rH | | d <n | d k ra | | d <n d S( Nt offsets
stop-colors stop-opacity( t superR t __init__t None( t selfR t colort opacityt extra( ( sC /opt/alt/python27/lib/python2.7/site-packages/svgwrite/gradients.pyR s
N( t __name__t
__module__t elementnameR R ( ( ( sC /opt/alt/python27/lib/python2.7/site-packages/svgwrite/gradients.pyR s t _AbstractGradientc B sP e Z d Z d d � Z d d � Z d d d d � Z d
d d � Z d � Z RS( t gradientTransformc K sX t t | � j | � | d k rT t | � r>