pybot.minitel.asciiart

Simple helper for managing character based images.

class pybot.minitel.asciiart.AsciiArtImage(lines)[source]

Bases: object

A pseudo image, composed of lines of ASCII characters.

Parameters:lines (list of str) – the ASCII chars composing the image, organized as a list of strings representing the lines of the image
display(mt, x=0, y=0)[source]

Displays the image on a Minitel, at a given position.

Parameters:
  • mt (core.Minitel) – the Minitel instance
  • y (x,) – the coordinates of the target area (default: 0, 0)