gfx

package
v0.0.0-...-8e656ca Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2014 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	I_A = 3
	I_R = 2
	I_G = 1
	I_B = 0
)
View Source
const (
	A_OPAQUE = 255
	A_TRANSP = 0
)

Variables

This section is empty.

Functions

func Clear

func Clear(data []byte, width, height int, red, green, blue, alpha byte)

func DrawOver

func DrawOver(dst draw.Image, src image.Image, x, y, width, height int)

func DrawSrc

func DrawSrc(dst draw.Image, src image.Image, x, y, width, height int)

func GetPixel

func GetPixel(data []byte, x, y, width int) (red, green, blue, alpha byte)

func GetPixelOffset

func GetPixelOffset(x, y, width int) int

func Rect

func Rect(data []byte, x1, y1, x2, y2, width int, red, green, blue, alpha byte)

func RectFilled

func RectFilled(data []byte, x1, y1, x2, y2, width int, red, green, blue, alpha byte)

func SetPixel

func SetPixel(data []byte, x, y, width int, red, green, blue, alpha byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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