package
Version:
v0.0.0-...-3c317a0
Opens a new window with list of versions in this module.
Published: Jan 30, 2025
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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)}
})
)
type BGR struct {
B, G, R uint8
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.