display

package
v0.0.0-...-a8aa549 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const COLS = 160
View Source
const CYCLES_PER_LINE = CYCLES_PER_FRAME / TOTAL_ROWS
View Source
const FRAMES_PER_SECOND = 60
View Source
const ROWS = 144
View Source
const TOTAL_ROWS = ROWS + VBLANK_ROWS
View Source
const VBLANK_ROWS = 10

Variables

View Source
var Shade0 = color.RGBA{R: 0x9b, G: 0xbc, B: 0x0f, A: 0xff}
View Source
var Shade1 = color.RGBA{R: 0x8b, G: 0xac, B: 0x0f, A: 0xff}
View Source
var Shade2 = color.RGBA{R: 0x30, G: 0x62, B: 0x30, A: 0xff}
View Source
var Shade3 = color.RGBA{R: 0x0f, G: 0x38, B: 0x0f, A: 0xff}

Functions

This section is empty.

Types

type CharAttrs

type CharAttrs byte

func (CharAttrs) BgPriority

func (a CharAttrs) BgPriority() bool

func (CharAttrs) HorizontalFlip

func (a CharAttrs) HorizontalFlip() bool

func (CharAttrs) IsPal1

func (a CharAttrs) IsPal1() bool

func (CharAttrs) VerticalFlip

func (a CharAttrs) VerticalFlip() bool

type Display

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

func NewDisplay

func NewDisplay(m *memory.Controller) Display

func (*Display) DebugRenderMemory

func (d *Display) DebugRenderMemory() image.Image

func (*Display) OutputChars

func (d *Display) OutputChars()

func (*Display) Update

func (d *Display) Update(cycles uint8)

type Oam

type Oam struct {
	X      byte
	Y      byte
	CharID byte
	Attrs  CharAttrs
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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