lib

package
v0.0.0-...-e568f5c Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert[A any, B any](a A, _ B) A

func Clamp

func Clamp[N float32 | float64 | int | int8 | int16 | int32 | int64](n, min, max N) N

func DebugPrintln

func DebugPrintln(isDebug *bool) func(a ...any)

func DrawTextLines

func DrawTextLines(text []string, startX, startY, fontSize int32, color color.RGBA)

func GetPixeliteVersion

func GetPixeliteVersion() (string, error)

func IsFileNotFoundError

func IsFileNotFoundError(e error) bool

func LoadImage

func LoadImage(fpath string) (image.Image, error)

func SaveImage

func SaveImage(fpath string, img image.Image) error

Types

type Version

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

func NewVersion

func NewVersion(major, minor, subminor int) Version

func NewVersionFromVersionString

func NewVersionFromVersionString(v string) (Version, error)

func (Version) Compare

func (v Version) Compare(ver Version) int

func (Version) Fmt

func (v Version) Fmt() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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