Module maze_rs::graphics[][src]

Expand description

This module handles all the screen rendering functionality used both for generating the maze, as well as solving it.

Modules

This module defines functions that actually render the maze by rendering each cell one at a time. Each cell, in turn, is rendered by locating the appropriate location on the screen, and rendering the individual sprites forming that cell.

Enums

Enum representing various colours that may be used for rendering a path through the maze. If the terminal does not support these colours, then the terminal will fall back to its default colours.

Constants

constants used for rendering the cells

column increment for cell sprite

initial location offset of the column cursor (from origin)

line increment for cell sprite

rendering (pause) speed of the cells

rendering (pause) speed of the path through the maze

Statics

erase the current line

ANSI Escaoe Codes

move cursor one position back

Sprites for rendering a cell in the maze

reset font colour

restore the cursor to the last saved cursor location

save the cursor’s current location in the terminal’s buffer