tileset

package
v0.0.0-...-a0f82c1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidDimensions = errors.New("tileset: image dimensions must be divisible by 16")

Functions

This section is empty.

Types

type Tileset

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

func NewTileset

func NewTileset(r io.Reader) (*Tileset, error)

func NewTilesetFromFile

func NewTilesetFromFile(filename string) (*Tileset, error)

func (*Tileset) Palette

func (t *Tileset) Palette() color.Palette

func (*Tileset) Size

func (t *Tileset) Size() image.Point

func (*Tileset) Tile

func (t *Tileset) Tile(ch byte, fg, bg termbox.Attribute) *image.Paletted

Jump to

Keyboard shortcuts

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