Help us shape the future of Go! Take the 2026 Go Developer Survey

internal

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID uint64

type IDManager

type IDManager struct {
	// contains filtered or unexported fields
}

func NewIDManager

func NewIDManager() *IDManager

func (*IDManager) Peek

func (m *IDManager) Peek() ID

func (*IDManager) Pop

func (m *IDManager) Pop()

func (*IDManager) Push

func (m *IDManager) Push(id string) ID

func (*IDManager) PushID

func (m *IDManager) PushID(id ID) ID

type Screen

type Screen struct {
	Size  mathi.Vec2
	Chars []cell
}

func NewScreen

func NewScreen(size mathi.Vec2) *Screen

func (*Screen) Get

func (s *Screen) Get(pos mathi.Vec2) cell

func (*Screen) GetChar added in v0.0.4

func (s *Screen) GetChar(pos mathi.Vec2) rune

GetChar returns the character painted at pos, or 0 if it is out of bounds or was never drawn.

func (*Screen) Resize

func (s *Screen) Resize(size mathi.Vec2)

func (*Screen) Set

func (s *Screen) Set(pos mathi.Vec2, char rune, fg, bg uint32)

set paints the character, foreground and background if the character is 0 the character will not be updated, old one remains. colors are blended when transparent.

func (*Screen) SetScreen

func (s *Screen) SetScreen(char rune, fg, bg uint32)

SetScreen sets the whole screen to given values.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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