Browse Source

Forgot image.py.

master
Gijs 4 years ago
parent
commit
ee2367d44b
  1. 4
      asciiWriter/examples/image.py

4
asciiWriter/examples/image.py

@ -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 '+'

Loading…
Cancel
Save