terminal

package
v0.0.0-...-f3ceee8 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Terminal

type Terminal struct {
	Img    *image.RGBA
	Width  int
	Height int
}

func NewTerminal

func NewTerminal(w, h int, autoInit bool) *Terminal

func (*Terminal) Apply

func (t *Terminal) Apply(leds []color.Color) error

func (*Terminal) At

func (t *Terminal) At(position int) color.Color

func (*Terminal) Close

func (t *Terminal) Close() error

func (*Terminal) Geometry

func (t *Terminal) Geometry() (width, height int)

func (*Terminal) GetBrightness

func (t *Terminal) GetBrightness() int

Those new functions have no use with the emulator

func (*Terminal) Init

func (t *Terminal) Init()

Init initialize the emulator, creating a new Window and waiting until is painted. If something goes wrong the function panics

func (*Terminal) Render

func (t *Terminal) Render() error

func (*Terminal) Set

func (t *Terminal) Set(position int, c color.Color)

func (*Terminal) SetBrightness

func (t *Terminal) SetBrightness(brightness int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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