sc2

package
v0.0.0-...-5a9de04 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(out io.Writer, s image.Image) error

Types

type ConvertOpt

type ConvertOpt string
const (
	Crop       ConvertOpt = "crop"
	Stretch    ConvertOpt = "stretch"
	KeepAspect ConvertOpt = "keepaspect"
)

type Encoder

type Encoder struct {
	Opt ConvertOpt
}

func (*Encoder) Encode

func (e *Encoder) Encode(out io.Writer, i image.Image) error

type Image

type Image struct {
	// todo: make private
	Table [3][]screen2.Tile
	Names [3][]uint8
}

Image keeps the data of a whole Screen 2 image

func (*Image) At

func (s *Image) At(x, y int) color.Color

func (*Image) Bounds

func (s *Image) Bounds() image.Rectangle

func (*Image) ColorModel

func (s *Image) ColorModel() color.Model

Jump to

Keyboard shortcuts

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