rgba8

package
v0.0.0-...-1f40f5c Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Red     = RGBA8{255, 0, 0, 255}
	Green   = RGBA8{0, 255, 0, 255}
	Blue    = RGBA8{0, 0, 255, 255}
	Cyan    = RGBA8{0, 255, 255, 255}
	Magenta = RGBA8{255, 0, 255, 255}
	Yellow  = RGBA8{255, 255, 0, 255}
	White   = RGBA8{255, 255, 255, 255}
	Black   = RGBA8{0, 0, 0, 255}
	None    = RGBA8{0, 0, 0, 0}
)

Functions

This section is empty.

Types

type RGBA8

type RGBA8 struct {
	Red   uint8
	Green uint8
	Blue  uint8
	Alpha uint8
}

func Decode

func Decode(value uint32) RGBA8

func New

func New(red, green, blue, alpha uint8) RGBA8

func (RGBA8) Uint32

func (c RGBA8) Uint32() uint32

Jump to

Keyboard shortcuts

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