a python library to draw with ASCII (but with Unicode)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
598 B

from random import choice
from string import ascii_letters
def random (marks=ascii_letters):
"""Random mark from provided marks."""
def func ():
return choice(marks)
return func
def sentence (text):
"""Deprecated. Use text."""
def text (text):
"""Loops through provided text."""
chars = list(text)
def f():
char = chars.pop(0)
chars.append(char)
return char
return f
def single (char):
"""Mark with a single character."""
def f():
return char
return f
def space (space=' '):
"""Convenience function to mark with spaces."""
return single(space)