Pull generate_image to top-level
@@ -65,10 +65,6 @@ PATTERN = {
'ONE': test_one,
}
-def generate(options, args):
- """
- Create a PNG test image and write the file to stdout.
- """
def generate_image(size, bitdepth, pattern):
"""Create a single plane (monochrome) test pattern. Returns a
@@ -91,7 +87,11 @@ def generate(options, args):
a.append(int(round(pfun(float(x)/fw, fy) * maxval)))
return a
- # The body of test_suite()
+
+def generate(options, args):
+ """
+ Create a PNG test image and write the file to stdout.
+ """
size = (256,256)
# Expect option of the form '64,40'.
