art

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Art

type Art struct {
	Height  int               `json:"height"`
	Legend  map[string]string `json:"legend"`
	Name    string            `json:"name"`
	Pixels  []string          `json:"pixels"`
	SysInfo *sysinfo.SysInfo  `json:"-"`
	Width   int               `json:"width"`
}

Art is a struct containing the necessary data to convert an ArTTY JSON file to pixel art.

func New

func New(paths ...string) (*Art, error)

New is a constructor for the Art type that takes an optional filename.

func NewFromJSON added in v1.0.2

func NewFromJSON(b []byte) (*Art, error)

NewFromJSON is a constructor for the Art type that takes a JSON blob.

func (*Art) String

func (a *Art) String() string

String will convert the Art struct to a string for fmt's print functions.

Jump to

Keyboard shortcuts

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