|
|
@ -5,20 +5,20 @@ from asciiWriter.utils import make_lines, visit, print_lines, merge |
|
|
|
from asciiWriter.marks import sentence, space, single |
|
|
|
|
|
|
|
# Define width and height of the output |
|
|
|
width = 100 |
|
|
|
height = 50 |
|
|
|
width = 50 |
|
|
|
height = 25 |
|
|
|
|
|
|
|
# As we draw multiple sinoids we will collect |
|
|
|
# them in a list of layers |
|
|
|
layers = [] |
|
|
|
|
|
|
|
# Loop through an offset from -40 to 40 in steps of 10 |
|
|
|
for x in range(-50, 50, 10): |
|
|
|
for x in range(width): |
|
|
|
|
|
|
|
# Set the pattern with the changing offset |
|
|
|
pattern = cross() |
|
|
|
# We use a sentence to draw the text |
|
|
|
mark = sentence('Hello World! ') |
|
|
|
mark = sentence('HHeelllloo WWoorrlldd!! ') |
|
|
|
# Define a blank character |
|
|
|
blank = single('-') |
|
|
|
|
|
|
|