editing cross.py example
This commit is contained in:
parent
4f4c5bc941
commit
7f7db31a10
@ -5,20 +5,20 @@ from asciiWriter.utils import make_lines, visit, print_lines, merge
|
|||||||
from asciiWriter.marks import sentence, space, single
|
from asciiWriter.marks import sentence, space, single
|
||||||
|
|
||||||
# Define width and height of the output
|
# Define width and height of the output
|
||||||
width = 100
|
width = 50
|
||||||
height = 50
|
height = 25
|
||||||
|
|
||||||
# As we draw multiple sinoids we will collect
|
# As we draw multiple sinoids we will collect
|
||||||
# them in a list of layers
|
# them in a list of layers
|
||||||
layers = []
|
layers = []
|
||||||
|
|
||||||
# Loop through an offset from -40 to 40 in steps of 10
|
# 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
|
# Set the pattern with the changing offset
|
||||||
pattern = cross()
|
pattern = cross()
|
||||||
# We use a sentence to draw the text
|
# We use a sentence to draw the text
|
||||||
mark = sentence('Hello World! ')
|
mark = sentence('HHeelllloo WWoorrlldd!! ')
|
||||||
# Define a blank character
|
# Define a blank character
|
||||||
blank = single('-')
|
blank = single('-')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user