bgcolor

package
v0.0.0-...-e7326f8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BgColor

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

Changes a background color of the game screen.

func New

func New(color color.Color) *BgColor

Creates new BgColor instance. This component changes a background color of the screen.

func (*BgColor) Draw

func (bc *BgColor) Draw(gb interfaces.IGameBase, screen *ebiten.Image)

func (*BgColor) DrawPriority

func (bc *BgColor) DrawPriority() float64

func (*BgColor) GetBgColor

func (bc *BgColor) GetBgColor() color.Color

Returns current background color

func (*BgColor) GetID

func (s *BgColor) GetID() string

Implementation of the goi.Component

func (*BgColor) SetBgColor

func (bc *BgColor) SetBgColor(clr color.Color)

Set a background color

Jump to

Keyboard shortcuts

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