models

package
v0.0.0-...-98d917b Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2017 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point struct {
	X int `json:"x"`
	Y int `json:"y"`
}

type Sprite

type Sprite struct {
	//Upper left pixel
	Min Point `json:"min"`
	//Lower Right pixel
	Max Point `json:"max"`
}

func (Sprite) Rect

func (s Sprite) Rect() image.Rectangle

type Spritesheet

type Spritesheet struct {
	Sprites []Sprite `json:"sprites"`
}

Jump to

Keyboard shortcuts

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