Browse Source

Merge branch 'master' of ssh://vvvvvvaria.org:12345/mb/asciiWriter

master
manetta 3 years ago
parent
commit
920174585c
  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.marks import single, space
from os.path import join, dirname
width = 75
height = 75
# Where to find the image
image_path = 'images/blobs-small.png'
image_path = join(dirname(__file__), 'data', 'blobs-small.png')
# Construct the pattern
image_pattern = image(image_path)
# Set the marker, in this case the character '+'

Loading…
Cancel
Save