first commit

This commit is contained in:
sarahgarcin1 2026-02-10 21:30:40 +01:00
commit 67eb7fa315
13 changed files with 943 additions and 0 deletions

28
ascii_writer/line.py Normal file
View file

@ -0,0 +1,28 @@
#!/usr/bin/env python3
"""
Draws a single, vertical line
"""
from asciiWriter.patterns import vertical
from asciiWriter.utils import make_lines, visit, print_lines
from asciiWriter.marks import sentence, space
# Set the canvas
width = 75
height = 75
# Define the line, most importantly it's position
pattern = vertical(20)
# We're going to fill the line with a text
mark = sentence('AVOID SOFTWARE ')
# Set the character for the 'blank' space
blank = space()
# Make a canvas
lines = make_lines(width, height)
# Draw the result
result = visit(lines, pattern, mark, blank)
# Print the result
print_lines(result)