Documentation ¶ Index ¶ type Cell type Screen func NewScreen(width, height int) *Screen func (s *Screen) Clear() func (s *Screen) Render() string func (s *Screen) SetCell(x, y int, char rune, fg, bg color.RGBA) func (s *Screen) SetDebugMessage(msg string) 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) Source Files ¶ View all Source files screen.go Click to show internal directories. Click to hide internal directories.