xp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package xp provides REXPaint (.xp) file parsing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	Char       int
	Foreground concolor.Color
	Background concolor.Color
}

Cell represents a cell in the REXPaint file

type Layer

type Layer struct {
	Cells [][]Cell
}

Layer represents a layer of cells in the REXPaint file

type XP

type XP struct {
	Version int
	Width   int
	Height  int
	Layers  []Layer
}

XP represents a REXPaint file

func Read

func Read(reader io.Reader) (*XP, error)

Read parses a xp file from the reader

Jump to

Keyboard shortcuts

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