color

package
v0.0.0-...-3c317a0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BGRModel = color.ModelFunc(func(c color.Color) color.Color {
		if y, ok := c.(color.YCbCr); ok {
			r, g, b := color.YCbCrToRGB(y.Y, y.Cb, y.Cr)
			return BGR{b, g, r}
		}
		r, g, b, _ := c.RGBA()
		return BGR{uint8(b), uint8(g), uint8(r)}
	})
)

Functions

This section is empty.

Types

type BGR

type BGR struct {
	B, G, R uint8
}

func (BGR) RGBA

func (B BGR) RGBA() (r, g, b, a uint32)

Jump to

Keyboard shortcuts

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