From 7f7db31a10cef66a7a985e41257574ec72cfb076 Mon Sep 17 00:00:00 2001 From: manetta Date: Sat, 8 May 2021 18:51:05 +0200 Subject: [PATCH] editing cross.py example --- asciiWriter/examples/cross.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/asciiWriter/examples/cross.py b/asciiWriter/examples/cross.py index 178f110..48bba49 100644 --- a/asciiWriter/examples/cross.py +++ b/asciiWriter/examples/cross.py @@ -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('-')