Browse Source

changing single() to space() for empty mark characters

master
manetta 3 years ago
parent
commit
1f36610246
  1. 4
      asciiWriter/examples/image_random_char.py
  2. 2
      asciiWriter/examples/image_rotate.py
  3. 2
      asciiWriter/examples/repeated_sinus_amplitude_variation.py
  4. 2
      asciiWriter/examples/sinus.py

4
asciiWriter/examples/image_random_char.py

@ -16,8 +16,8 @@ image_pattern = image(image_path)
# Set the marker, in this case it makes a random selection from
# the list: +, *, $, #, ,
mark = random(['+', '*', '$', '#', ' ', ' '])
# Define what to use on a blank space, as a variation you coul use: single('*')
blank = single()
# Define what to use on a blank space, as a variation you could use: single('*')
blank = space()
# Make a canvas
lines = make_lines(width, height)

2
asciiWriter/examples/image_rotate.py

@ -22,7 +22,7 @@ image_pattern = image(image_path)
# Set the marker, in this case a sentence
mark = sentence('ASCII ')
# Define what to use on a blank space, as a variation you coul use: single('*')
blank = single(' ')
blank = space()
# Make a canvas
lines = make_lines(width, height)

2
asciiWriter/examples/repeated_sinus_amplitude_variation.py

@ -21,7 +21,7 @@ for amplitude in range(-40, 50, 10):
# We use a sentence to draw the text
mark = sentence('VARIA-')
# Define a blank character
blank = space('-')
blank = single('-')
# Make the canvas
lines = make_lines(width, height)

2
asciiWriter/examples/sinus.py

@ -15,7 +15,7 @@ pattern = sinus_vertical(period=40, amplitude=30)
# We use a sentence to draw the text
mark = sentence('OPEN DESIGN COURSE ')
# Define a blank character
blank = single(' ')
blank = single('-')
# Make the canvas
lines = make_lines(width, height)

Loading…
Cancel
Save