emulator

package
v0.0.0-...-7db34b9 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emulator

type Emulator struct {
	PixelPitch              int
	Gutter                  int
	Width                   int
	Height                  int
	GutterColor             color.Color
	PixelPitchToGutterRatio int
	Margin                  int
	// contains filtered or unexported fields
}

func NewEmulator

func NewEmulator(hc *matrix.HardwareConfig) *Emulator

func (*Emulator) At

func (e *Emulator) At(x, y int) color.Color

func (*Emulator) Bounds

func (e *Emulator) Bounds() image.Rectangle

Bounds return the topology of the Canvas

func (*Emulator) Close

func (e *Emulator) Close()

func (*Emulator) ColorModel

func (e *Emulator) ColorModel() color.Model

ColorModel returns the canvas' color model, always color.RGBAModel

func (*Emulator) Render

func (e *Emulator) Render()

func (*Emulator) Run

func (e *Emulator) Run()

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

func (*Emulator) Set

func (e *Emulator) Set(x, y int, c color.Color)

Jump to

Keyboard shortcuts

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