graphics

package
v0.0.0-...-c6bb9b6 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graphics

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

func NewGraphics

func NewGraphics(width, height int) *Graphics

func (*Graphics) Clear

func (g *Graphics) Clear(c pixel.RGBA)

func (*Graphics) DrawCell

func (g *Graphics) DrawCell(x, y int, c color.Color)

func (*Graphics) DrawImage

func (g *Graphics) DrawImage(img *image.RGBA)

func (*Graphics) DrawImageScaled

func (g *Graphics) DrawImageScaled(img *image.RGBA, scale int)

func (*Graphics) Render

func (g *Graphics) Render(window *pixelgl.Window)

Jump to

Keyboard shortcuts

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