renderer

package
v0.0.0-...-0b8c1fa Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeColorFromHex

func DecodeColorFromHex(s string) (color.Color, error)

func MustDecodeColorFromHex

func MustDecodeColorFromHex(s string) color.Color

Types

type Config

type Config struct {
	FgColor color.Color
	BgColor color.Color
}

type Renderer

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

func NewFromConfig

func NewFromConfig(chip8 *chip8.Chip8, conf Config) *Renderer

func (*Renderer) Draw

func (r *Renderer) Draw(screen *ebiten.Image)

func (*Renderer) Layout

func (r *Renderer) Layout(int, int) (int, int)

func (*Renderer) Run

func (r *Renderer) Run() error

func (*Renderer) Update

func (r *Renderer) Update() error

Jump to

Keyboard shortcuts

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