ebitencanvas

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Water color.RGBA = color.RGBA{0x23, 0x89, 0xDA, 0xFF} // 2389DA
	Black color.RGBA = color.RGBA{0x00, 0x00, 0x00, 0xFF}
	Red   color.RGBA = color.RGBA{0xFF, 0x00, 0x00, 0xFF}
)

Functions

func LoadSpriteFile added in v0.1.0

func LoadSpriteFile(path string) (image.Image, error)

func NewSprite added in v0.1.0

func NewSprite() *spriteToDraw

func StartEbitenTurtleCanvas

func StartEbitenTurtleCanvas(params CanvasParams, drawFunc func(models.Canvas))

The drawFunc will be started as a go routine.

func TestEbitenTurtleCanvas added in v0.1.0

func TestEbitenTurtleCanvas(t *testing.T)

Types

type CanvasParams

type CanvasParams struct {
	Width   int
	Height  int
	ShowFPS bool
}

type SavedControlState

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

func (*SavedControlState) GetUserInput

func (s *SavedControlState) GetUserInput() *models.UserInput

Jump to

Keyboard shortcuts

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