# Path: twyg/css3colors.py
# def _parse_hex(col):
# def _conv_rgb(c):
# def _conv_percent(p):
# def _conv_alpha(a):
# def _conv_hue(h):
# def color_to_rgba(col):
# def rgba_to_color(r, g, b, a, format='rgba'):
# 
# Path: twyg/tree.py
# class Direction(object):
#     Top, Right, Bottom, Left = range(4)


import math, os, re, sys
import operator as _operator
import twyg.common
from pkg_resources import resource_filename
    from collections import OrderedDict
    from twyg.ordereddict import OrderedDict
from twyg.css3colors import color_to_rgba, colornames
from twyg.tree import Direction
    'log10':    math.log10,
    'max':      max,
    'min':      min,
    'pow':      pow,
    'round':    round,
    'sqrt':     math.sqrt,

    'rgb':      lambda r, g, b:    parsecolor('rgb',  r, g, b),
    'rgba':     lambda r, g, b, a: parsecolor('rgba', r, g, b, a),
    'hsl':      lambda h, s, l:    parsecolor('hsl',  h, s, l),
    'hsla':     lambda h, s, l, a: parsecolor('hsla', h, s, l, a)
}


variable_table_defaults = {
}

variable_table = {
}

def init_variable_table_defaults():
    # Make all named CSS3 colors available as color.<colorname> in the
    # config file
    def inject_css3_colors():
        global variable_table_defaults

        class Colors:
            pass

        col = Colors()

# Path: twyg/css3colors.py
# def _parse_hex(col):
# def _conv_rgb(c):
# def _conv_percent(p):
# def _conv_alpha(a):
# def _conv_hue(h):
# def color_to_rgba(col):
# def rgba_to_color(r, g, b, a, format='rgba'):
# 
# Path: twyg/tree.py
# class Direction(object):
#     Top, Right, Bottom, Left = range(4)


# Path: twyg/config.py
import math, os, re, sys
import operator as _operator
import twyg.common
from pkg_resources import resource_filename
    from collections import OrderedDict
    from twyg.ordereddict import OrderedDict
from twyg.css3colors import color_to_rgba, colornames
from twyg.tree import Direction

    'log10':    math.log10,
    'max':      max,
    'min':      min,
    'pow':      pow,
    'round':    round,
    'sqrt':     math.sqrt,

    'rgb':      lambda r, g, b:    parsecolor('rgb',  r, g, b),
    'rgba':     lambda r, g, b, a: parsecolor('rgba', r, g, b, a),
    'hsl':      lambda h, s, l:    parsecolor('hsl',  h, s, l),
    'hsla':     lambda h, s, l, a: parsecolor('hsla', h, s, l, a)
}


variable_table_defaults = {
}

variable_table = {
}

def init_variable_table_defaults():
    # Make all named CSS3 colors available as color.<colorname> in the
    # config file
    def inject_css3_colors():
        global variable_table_defaults

        class Colors:
            pass

        col = Colors()

        for name in colornames.keys():