lib

package
v0.0.0-...-1ebc2e8 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorBlack = Color{R: 0, G: 0, B: 0, A: 0}
View Source
var ColorBlue = Color{R: 37, G: 37, B: 255, A: 0xff}
View Source
var ColorGreen = Color{R: 0x4a, G: 0xf6, B: 0x26, A: 0xff}
View Source
var ColorRed = Color{R: 250, G: 37, B: 37, A: 255}
View Source
var ColorWhite = Color{R: 255, G: 255, B: 255, A: 255}
View Source
var ColorYellow = Color{R: 0xfa, G: 0xfa, B: 0xd2, A: 0xff}

Functions

func GetRGBA64

func GetRGBA64(clr color.Color) (r1, g1, b1, a1 float64)

func WidthHeight

func WidthHeight(img *ebiten.Image) (int, int)

Types

type Color

type Color struct {
	R, G, B, A uint8
}

reimplementing Color from color.Color to make it json deserializeable ... dunno why needed

func (Color) RGBA

func (c Color) RGBA() (r, g, b, a uint32)

type GameObject

type GameObject interface {
	Draw(image *ebiten.Image)
	Update() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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