centerprint

package
v1.2.235 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigFont

func BigFont() font.Face

func Draw

func Draw(screen *ebiten.Image)

func NormalFont

func NormalFont() font.Face

func Reset

func Reset()

func Update

func Update()

Types

type Centerprint

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

func New

func New(txt string, imp Importance, pos InitialPosition, face font.Face, color color.Color, fadeTime time.Duration) *Centerprint

func (*Centerprint) Active

func (cp *Centerprint) Active() bool

func (*Centerprint) SetFadeOut

func (cp *Centerprint) SetFadeOut(fadeOut bool)

type Importance

type Importance int
const (
	Important Importance = iota
	NotImportant
)

type InitialPosition

type InitialPosition int
const (
	Top InitialPosition = iota
	Middle
)

Jump to

Keyboard shortcuts

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