Documentation ¶
Index ¶
- Constants
- func CoordinatesToArrayIndex(x int, y int, canvasWidth int) int
- func HighNibble(word Word) byte
- func LinearToXCoordinate(index int, canvasWidth int) int32
- func LinearToYCoordinate(index int, canvasWidth int) int32
- func LowNibble(word Word) byte
- type Address
- type Color
- type Frame
- type Pixel
- type Tile
- type Word
Constants ¶
View Source
const SCREEN_HEIGHT = 240
View Source
const SCREEN_WIDTH = 256
Variables ¶
This section is empty.
Functions ¶
func HighNibble ¶
func LinearToXCoordinate ¶
func LinearToYCoordinate ¶
Types ¶
type Address ¶
type Address = Word
Address is an address representation
func CreateAddress ¶
CreateAddress creates an Address
type Frame ¶
type Frame struct {
Pixels [SCREEN_WIDTH * SCREEN_HEIGHT]Color
}
Click to show internal directories.
Click to hide internal directories.