pixels

package module
v0.0.0-...-c4fa34d Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GREY              = NewCol(192, 192, 192, 255)
	DARK_GREY         = NewCol(128, 128, 128, 255)
	VERY_DARK_GREY    = NewCol(64, 64, 64, 255)
	RED               = NewCol(255, 0, 0, 255)
	DARK_RED          = NewCol(128, 0, 0, 255)
	VERY_DARK_RED     = NewCol(64, 0, 0, 255)
	YELLOW            = NewCol(255, 255, 0, 255)
	DARK_YELLOW       = NewCol(128, 128, 0, 255)
	VERY_DARK_YELLOW  = NewCol(64, 64, 0, 255)
	GREEN             = NewCol(0, 255, 0, 255)
	DARK_GREEN        = NewCol(0, 128, 0, 255)
	VERY_DARK_GREEN   = NewCol(0, 64, 0, 255)
	CYAN              = NewCol(0, 255, 255, 255)
	DARK_CYAN         = NewCol(0, 128, 128, 255)
	VERY_DARK_CYAN    = NewCol(0, 64, 64, 255)
	BLUE              = NewCol(0, 0, 255, 255)
	DARK_BLUE         = NewCol(0, 0, 128, 255)
	VERY_DARK_BLUE    = NewCol(0, 0, 64, 255)
	MAGENTA           = NewCol(255, 0, 255, 255)
	DARK_MAGENTA      = NewCol(128, 0, 128, 255)
	VERY_DARK_MAGENTA = NewCol(64, 0, 64, 255)
	WHITE             = NewCol(255, 255, 255, 255)
	BLACK             = NewCol(0, 0, 0, 255)
	BLANK             = NewCol(0, 0, 0, 0)
)

Functions

func Alpha

func Alpha(c color.RGBA, a uint8) *color.RGBA

func DrawRect

func DrawRect(image *ebiten.Image, pos, size vec.Vf2d, clr color.Color)

func FillRect

func FillRect(image *ebiten.Image, pos, size vec.Vf2d, clr color.Color)

func NewCol

func NewCol(r, g, b, a uint8) color.RGBA

Types

type Renderable

type Renderable struct {
	Image *ebiten.Image
	// contains filtered or unexported fields
}

func NewRenderable

func NewRenderable(gen func() *ebiten.Image) *Renderable

func (*Renderable) Redraw

func (r *Renderable) Redraw()

Jump to

Keyboard shortcuts

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