screen

package
v0.0.0-...-1c99cfb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	Char    rune
	FgColor color.RGBA
	BgColor color.RGBA
}

type Screen

type Screen struct {
	Width      int
	Height     int
	GameHeight int // Height available for game rendering (excludes HUD)
	Buffer     [][]Cell
	// contains filtered or unexported fields
}

func NewScreen

func NewScreen(width, height int) *Screen

func (*Screen) Clear

func (s *Screen) Clear()

func (*Screen) Render

func (s *Screen) Render() string

func (*Screen) SetCell

func (s *Screen) SetCell(x, y int, char rune, fg, bg color.RGBA)

func (*Screen) SetDebugMessage

func (s *Screen) SetDebugMessage(msg string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL