color

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

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Black = RGB(0, 0, 0)
	Red   = RGB(255, 0, 0)
	Green = RGB(0, 255, 0)
	Blue  = RGB(0, 0, 255)
	White = RGB(255, 255, 255)
)

Functions

This section is empty.

Types

type Color

type Color uint32

func Average

func Average(c, d Color) Color

func Blend

func Blend(dst, src Color) Color

func BlendMultiply

func BlendMultiply(dst, src1, src2 Color) Color

func BlendMultiplyFont

func BlendMultiplyFont(dst, font, src Color) Color

func Dark

func Dark(c Color) Color

func Grey

func Grey(c Color) Color

func Lite

func Lite(c Color) Color

func RGB

func RGB(r, g, b byte) Color

func RGBA

func RGBA(r, g, b, a byte) Color

func (Color) A

func (c Color) A() byte

func (Color) B

func (c Color) B() byte

func (Color) G

func (c Color) G() byte

func (Color) Invisible

func (c Color) Invisible() bool

func (Color) Opaque

func (c Color) Opaque() bool

Opaque returns true if color is 100% non-transparent.

func (Color) R

func (c Color) R() byte

Jump to

Keyboard shortcuts

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