generateButtons (version 0.1, 2009-07-24)
index
/home/marc/Desktop/projects/OpenLayersButtonGenerator/generateButtons.py

This script generates icons to be used within OpenLayers-applications. Requires python and inkscape.
 
Version:0.1
Date: 2009-07-24
Author: Marc Jansen
License: BSD License (see ./license.txt)

 
Modules
       
os
re
sys

 
Functions
       
cleanup_passed_color_value(s)
Cleans passed string to either return a valid SVG-RGB-HEX-notation or an empty string.
print_illegal_color_format_screen(enteredBGColor, enteredFGColor, convertedBGColor, convertedFGColor)
Prints debugging information when the script encounters an illegal color.
print_usage_info_screen()
Prints usage information for this script.

 
Data
        __author__ = 'Marc Jansen'
__date__ = '2009-07-24'
__license__ = 'BSD License (see ./license.txt)'
__version__ = '0.1'
bgColorInString = '#ff0000'
bgColorOutString = ''
colorNamesAndCodes = {'aliceblue': '#f0f8ff', 'antiquewhite': '#faebd7', 'aqua': '#00ffff', 'aquamarine': '#7fffd4', 'azure': '#f0ffff', 'beige': '#f5f5dc', 'bisque': '#ffe4c4', 'black': '#000000', 'blanchedalmond': '#ffebcd', 'blue': '#0000ff', ...}
fgColorInString = '#ffffff'
fgColorOutString = ''
inputdir = './input-svg'
outputdirpng = './output-png'
outputdirsvg = './output-svg'

 
Author
        Marc Jansen