From a5c8c8309437931a03e10b84d69a1134e8349d93 Mon Sep 17 00:00:00 2001 From: manetta Date: Sat, 8 May 2021 19:35:49 +0200 Subject: [PATCH] edited the single_column_wavy.py script --- asciiWriter/examples/single_column_wavy.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/asciiWriter/examples/single_column_wavy.py b/asciiWriter/examples/single_column_wavy.py index 91ff3ff..e083f90 100644 --- a/asciiWriter/examples/single_column_wavy.py +++ b/asciiWriter/examples/single_column_wavy.py @@ -8,13 +8,11 @@ from os.path import join, dirname # Define width and height of the output width = 100 -height = 500 +height = 370 # Import a text text = open(join(dirname(__file__), 'data', 'language.txt')).read() -# Import a hyphenator - # Make an empty layers list layers = [] @@ -39,15 +37,10 @@ try: except ImportError: lines, remaining = make_column(text, height=height, line_width=sin_width, line_offset=cos_width) -# Transform the text into multiple columns -# lines, remaining = make_multi_column(text, height=height-3, use_hyphenator=h_en) +# Move the text slightly lines = translate(lines, x=15, y=1) -# Create an background -background = make_lines(width, height, ' ') - -# Add all your layers to the layers list -layers.append(background) +# Add the lines to the layers layers.append(lines) # Merge the layers into one layer again