editing cross.py example

This commit is contained in:
manetta 2021-05-08 18:51:05 +02:00
parent 4f4c5bc941
commit 7f7db31a10

View File

@ -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('-')