rgba

package
v0.9.4-beta Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Black        = color.RGBA{0, 0, 0, 255}
	Background   = color.RGBA{R: 75, G: 75, B: 75, A: 255}
	CoolBlue     = color.RGBA{R: 71, G: 163, B: 255, A: 255}
	DarkBlue     = color.RGBA{R: 25, G: 25, B: 100, A: 50}
	DarkerGray   = color.RGBA{A: 0xF}
	DarkerYellow = color.RGBA{R: 0xFF, G: 0xFF, A: 0x3F}
	DarkerRed    = color.RGBA{R: 0xFF, G: 0xF, B: 0xF, A: 0x0F}
	DarkGray     = color.RGBA{A: 0x4F}
	DarkRed      = color.RGBA{R: 0xFF, G: 0xF, B: 0xF, A: 0x3F}
	DarkSeafoam  = color.RGBA{R: 46, G: 204, B: 113, A: 0xFF}
	DarkYellow   = color.RGBA{R: 204, G: 204, A: 0xFF}
	ForestGreen  = color.RGBA{R: 0xF, G: 0xFF, B: 0xF, A: 0x3F}
	Green        = color.RGBA{G: 0xFF, A: 0xFF}
	Seafoam      = color.RGBA{R: 46, G: 204, B: 113, A: 0xFF}
	Highlight    = color.RGBA{255, 255, 255, 255}
	LightPurple  = color.RGBA{204, 0, 204, 255}
	Orange       = color.RGBA{255, 165, 0, 255}
	Purple       = color.RGBA{83, 94, 255, 255}
	PaleRed      = color.RGBA{168, 49, 49, 255}
	Red          = color.RGBA{R: 0xFF, A: 0xFF}
	SlateGray    = color.RGBA{R: 0xFF, G: 0xFF, B: 0xFF, A: 0x3F}
	Yellow       = color.RGBA{R: 0xFF, G: 0xFF, A: 0xFF}
	White        = color.RGBA{R: 0xFF, G: 0xFF, B: 0xFF, A: 0xFF}
)

Functions

func Alpha

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

func Bool

func Bool(b bool) color.RGBA

func Gray

func Gray(img *image.RGBA) *image.Gray

Gray returns a new grayscale image

func N

func N(c color.RGBA) color.NRGBA

Types

This section is empty.

Jump to

Keyboard shortcuts

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