Skip to main content

Module edge_snake

Module edge_snake 

Source

Structsยง

EdgeSnake
Manages a snake animation that moves along the terminal boundaries. The snake follows the edges of the given area in a clockwise direction.

Constantsยง

SEGMENT_GAP ๐Ÿ”’
Spacing between snake segments. Horizontal spacing is double this value to account for a TUI cell aspect ratio.
SPEED_MOVING_SNAKE_SLEEP_TIME_MS
TOTAL_SEGMENTS ๐Ÿ”’
Total number of snake segments (emojis) to display.