edited the single_column_wavy.py script
This commit is contained in:
parent
1463c11280
commit
a5c8c83094
@ -8,13 +8,11 @@ from os.path import join, dirname
|
|||||||
|
|
||||||
# Define width and height of the output
|
# Define width and height of the output
|
||||||
width = 100
|
width = 100
|
||||||
height = 500
|
height = 370
|
||||||
|
|
||||||
# Import a text
|
# Import a text
|
||||||
text = open(join(dirname(__file__), 'data', 'language.txt')).read()
|
text = open(join(dirname(__file__), 'data', 'language.txt')).read()
|
||||||
|
|
||||||
# Import a hyphenator
|
|
||||||
|
|
||||||
# Make an empty layers list
|
# Make an empty layers list
|
||||||
layers = []
|
layers = []
|
||||||
|
|
||||||
@ -39,15 +37,10 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
lines, remaining = make_column(text, height=height, line_width=sin_width, line_offset=cos_width)
|
lines, remaining = make_column(text, height=height, line_width=sin_width, line_offset=cos_width)
|
||||||
|
|
||||||
# Transform the text into multiple columns
|
# Move the text slightly
|
||||||
# lines, remaining = make_multi_column(text, height=height-3, use_hyphenator=h_en)
|
|
||||||
lines = translate(lines, x=15, y=1)
|
lines = translate(lines, x=15, y=1)
|
||||||
|
|
||||||
# Create an background
|
# Add the lines to the layers
|
||||||
background = make_lines(width, height, ' ')
|
|
||||||
|
|
||||||
# Add all your layers to the layers list
|
|
||||||
layers.append(background)
|
|
||||||
layers.append(lines)
|
layers.append(lines)
|
||||||
|
|
||||||
# Merge the layers into one layer again
|
# Merge the layers into one layer again
|
||||||
|
Loading…
Reference in New Issue
Block a user