Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/genpieces.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-02-01 23:44:57 (GMT)
committer Walter Bender <walter.bender@gmail.com>2013-02-01 23:44:57 (GMT)
commitffda647870496e7ec58f72029dc4e5c37e416b10 (patch)
tree7df2582853e0c6e219e1822a220829401f62cb2e /genpieces.py
parentf59b2031db0dde0291377243604551278024dd16 (diff)
updates from .NI feedback
Diffstat (limited to 'genpieces.py')
-rwxr-xr-xgenpieces.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/genpieces.py b/genpieces.py
index f4d8485..f2c2d27 100755
--- a/genpieces.py
+++ b/genpieces.py
@@ -146,6 +146,16 @@ def generator(datapath):
close_file(f)
+def genblank(w, h, colors, stroke_width=1.0):
+ svg = SVG()
+ svg.set_scale(1)
+ svg.set_colors(colors)
+ svg.set_stroke_width(stroke_width)
+ svg_string = svg.header(int(w / 80), int(h / 60))
+ svg_string += svg.footer()
+ return svg_string
+
+
def main():
return 0