Forgot image.py.

This commit is contained in:
Gijs 2021-05-08 17:31:16 +02:00
parent 1581a2fa79
commit ee2367d44b

View File

@ -9,11 +9,13 @@ from asciiWriter.patterns import image
from asciiWriter.utils import make_lines, visit, print_lines from asciiWriter.utils import make_lines, visit, print_lines
from asciiWriter.marks import single, space from asciiWriter.marks import single, space
from os.path import join, dirname
width = 75 width = 75
height = 75 height = 75
# Where to find the image # Where to find the image
image_path = 'images/blobs-small.png' image_path = join(dirname(__file__), 'data', 'blobs-small.png')
# Construct the pattern # Construct the pattern
image_pattern = image(image_path) image_pattern = image(image_path)
# Set the marker, in this case the character '+' # Set the marker, in this case the character '+'