Documentation ¶
Index ¶
Constants ¶
View Source
const COLS = 160
View Source
const CYCLES_PER_FRAME = utils.CPU_CYCLES_PER_SECOND / FRAMES_PER_SECOND
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 (CharAttrs) HorizontalFlip ¶
func (CharAttrs) VerticalFlip ¶
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
func NewDisplay ¶
func NewDisplay(m *memory.Controller) Display
func (*Display) DebugRenderMemory ¶
func (*Display) OutputChars ¶
func (d *Display) OutputChars()
Click to show internal directories.
Click to hide internal directories.