nes-sprites: github.com/BakeRolls/nes-sprites Index | Files

package sprites

import "github.com/BakeRolls/nes-sprites"

Index

Package Files

sprites.go

type Sprite Uses

type Sprite []byte

A Sprite is represented by 16 bytes.

func Read Uses

func Read(r io.ReadSeeker) ([]Sprite, error)

Read a iNES ROM.

func (Sprite) Colors Uses

func (s Sprite) Colors() []byte

Colors returns the colors from 0 to 3 in an byte array. Each row is defined by summing the nth and the n+8th byte. n: 11110000b n+8: 11001100b

33112200d

func (Sprite) Image Uses

func (s Sprite) Image() *image.RGBA

Image returns an image representation of the sprite.

Package sprites imports 4 packages (graph). Updated 2018-04-02. Refresh now. Tools for package owners.