# Path: twyg/cairowrapper.py
# class Color(object):
# class Context(object):
#     def __init__(self, c1, c2, c3, a, mode='rgb'):
#     def __repr__(self):
#     def copy(self):
#     def rgba(self):
#     def darken(self, step=0.1):
#     def lighten(self, step=0.1):
#     def blend(self, clr, factor=0.5):
#     def _update_hsv(self):
#     def _update_rgb(self):
# def color(*args):
#     def __init__(self):
#     def init():
#     def rect(self, x, y, width, height, roundness=0.0, draw=True):
#     def oval(self, x, y, width, height, draw=True):
#     def line(self, x1, y1, x2, y2, draw=True):
#     def arrow(x, y, width, type, draw=True):
#     def star(x, y, points=20, outer=100, inner=50, draw=True):
#     def beginpath(self, x, y):
#     def moveto(self, x, y):
#     def lineto(self, x, y):
#     def curveto(self, x1, y1, x2, y2, x3, y3):
#     def findpath(list, curvature=1.0):
#     def endpath(self, draw=True):
#     def drawpath(self, path):
#     def beginclip(self, path):
#     def endclip(self):
#     def autoclosepath(self, close=True):
#     def transform(mode):
#     def translate(self, x, y):
#     def rotate(self, degrees=0.0, radians=0.0):
#     def scale(self, x, y=None):
#     def skew(x, y=None):
#     def push(self):
#     def pop(self):
#     def reset(self):
#     def outputmode(self, mode):
#     def colormode(self, mode):
#     def color(self, *args):
#     def fill(self, *args):
#     def nofill(self):
#     def stroke(self, *args):
#     def nostroke(self):
#     def strokewidth(self, width):
#     def background(self, *args):
#     def font(self, fontname, fontsize=None):
#     def fontsize(self, fontsize):
#     def text(self, txt, x, y):
#     def textpath(txt, x, y, width=None, height=1000000):
#     def textwidth(self, txt):
#     def textheight(self, txt):
#     def textmetrics(self, txt):
#     def lineheight(self, height=None):
#     def align(self, align):
#     def image(path, x, y, width=None, height=None, alpha=1.0, data=None):
#     def imagesize(path):
#     def size(w, h):
#     def var(name, type, default, min, max):
#     def random(v1=None, v2=None):
#     def choice(list):
#     def grid(cols, rows, colsize=1, rowsize=1):
#     def files(path):
#     def autotext(xml):
#     def rgba_color(self, c):
#     def gradientfill(self, path, clr1, clr2, dx=0.0, dy=0.0,
#                      type='linear',spread=1.0):
#     def shadow(self, dx=0.0, dy=0.0, blur=3.0, clr=color(0, 0, 0, 1)):
#     def noshadow(self):
#     def initsurface(self, w, h, fmt, fname=None, scale=1.0):
#     def writesurface(self):
#     def _make_color_obj(self, *args):
#     def _draw_stroke(self):
#     def _draw(self):
#     def _draw_shadow(self):
#     def _render_bitmap_shadow(self):


import os, sys
from fig import *
from twyg.cairowrapper import context as ctx
    fontName                $FONTNAME
    fontSize                $FONTSIZE
    textBaselineCorrection  $BASELINE_CORR
    aspectRatio             2
    strokeWidth             3
    textPadX                3
    textPadY                3

[connection]
    style                   curve

[color]
    style                   cycle
    colorscheme             "mint-examples3"
    fontColorAuto           no
    fontColor               #fff
    fillColor               baseColor.blend(#fff, .45)

"""

data1 = { 'mar': [] }
data2 = { 'ere': [] }
data3 = { 'amiss': [] }

tree1 = create_tree(config1, data1)
tree2 = create_tree(config2, data2)
tree3 = create_tree(config3, data3)

init_surface(320, 83, scale=0.9)


# Path: twyg/cairowrapper.py
# class Color(object):
# class Context(object):
#     def __init__(self, c1, c2, c3, a, mode='rgb'):
#     def __repr__(self):
#     def copy(self):
#     def rgba(self):
#     def darken(self, step=0.1):
#     def lighten(self, step=0.1):
#     def blend(self, clr, factor=0.5):
#     def _update_hsv(self):
#     def _update_rgb(self):
# def color(*args):
#     def __init__(self):
#     def init():
#     def rect(self, x, y, width, height, roundness=0.0, draw=True):
#     def oval(self, x, y, width, height, draw=True):
#     def line(self, x1, y1, x2, y2, draw=True):
#     def arrow(x, y, width, type, draw=True):
#     def star(x, y, points=20, outer=100, inner=50, draw=True):
#     def beginpath(self, x, y):
#     def moveto(self, x, y):
#     def lineto(self, x, y):
#     def curveto(self, x1, y1, x2, y2, x3, y3):
#     def findpath(list, curvature=1.0):
#     def endpath(self, draw=True):
#     def drawpath(self, path):
#     def beginclip(self, path):
#     def endclip(self):
#     def autoclosepath(self, close=True):
#     def transform(mode):
#     def translate(self, x, y):
#     def rotate(self, degrees=0.0, radians=0.0):
#     def scale(self, x, y=None):
#     def skew(x, y=None):
#     def push(self):
#     def pop(self):
#     def reset(self):
#     def outputmode(self, mode):
#     def colormode(self, mode):
#     def color(self, *args):
#     def fill(self, *args):
#     def nofill(self):
#     def stroke(self, *args):
#     def nostroke(self):
#     def strokewidth(self, width):
#     def background(self, *args):
#     def font(self, fontname, fontsize=None):
#     def fontsize(self, fontsize):
#     def text(self, txt, x, y):
#     def textpath(txt, x, y, width=None, height=1000000):
#     def textwidth(self, txt):
#     def textheight(self, txt):
#     def textmetrics(self, txt):
#     def lineheight(self, height=None):
#     def align(self, align):
#     def image(path, x, y, width=None, height=None, alpha=1.0, data=None):
#     def imagesize(path):
#     def size(w, h):
#     def var(name, type, default, min, max):
#     def random(v1=None, v2=None):
#     def choice(list):
#     def grid(cols, rows, colsize=1, rowsize=1):
#     def files(path):
#     def autotext(xml):
#     def rgba_color(self, c):
#     def gradientfill(self, path, clr1, clr2, dx=0.0, dy=0.0,
#                      type='linear',spread=1.0):
#     def shadow(self, dx=0.0, dy=0.0, blur=3.0, clr=color(0, 0, 0, 1)):
#     def noshadow(self):
#     def initsurface(self, w, h, fmt, fname=None, scale=1.0):
#     def writesurface(self):
#     def _make_color_obj(self, *args):
#     def _draw_stroke(self):
#     def _draw(self):
#     def _draw_shadow(self):
#     def _render_bitmap_shadow(self):


# Path: doc/figures/nodes-oval.py
import os, sys
from fig import *
from twyg.cairowrapper import context as ctx

    fontName                $FONTNAME
    fontSize                $FONTSIZE
    textBaselineCorrection  $BASELINE_CORR
    aspectRatio             2
    strokeWidth             3
    textPadX                3
    textPadY                3

[connection]
    style                   curve

[color]
    style                   cycle
    colorscheme             "mint-examples3"
    fontColorAuto           no
    fontColor               #fff
    fillColor               baseColor.blend(#fff, .45)

"""

data1 = { 'mar': [] }
data2 = { 'ere': [] }
data3 = { 'amiss': [] }

tree1 = create_tree(config1, data1)
tree2 = create_tree(config2, data2)
tree3 = create_tree(config3, data3)

init_surface(320, 83, scale=0.9)


ctx.translate(3, 3)