IntroductionΒΆ
There are various display emulators available for running code against, for debugging and screen capture functionality:
- The
luma.emulator.device.capture
device will persist a numbered PNG file to disk every time itsdisplay
method is called. - The
luma.emulator.device.gifanim
device will record every image when itsdisplay
method is called, and on program exit (or Ctrl-C), will assemble the images into an animated GIF. - The
luma.emulator.device.pygame
device uses the pygame library to render the displayed image to a pygame display surface. - The
luma.emulator.device.asciiart
device renders the displayed image to a terminal using ANSI color codes and varying ASCII characters to represent pixel density.
Check out the examples on how to use the luma.emulator devices.