color

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0, MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GrayA32Model = color.ModelFunc(graya32Model)
View Source
var GrayAModel = color.ModelFunc(grayaModel)
View Source
var RGB48Model = color.ModelFunc(rgb48Model)
View Source
var RGBModel = color.ModelFunc(rgbModel)

Functions

func OpaqueModel

func OpaqueModel(cm color.Model) bool

Types

type GrayA

type GrayA struct {
	Y, A uint8
}

func (GrayA) RGBA

func (c GrayA) RGBA() (r, g, b, a uint32)

type GrayA32

type GrayA32 struct {
	Y, A uint16
}

func (GrayA32) RGBA

func (c GrayA32) RGBA() (r, g, b, a uint32)

type RGB

type RGB struct {
	R, G, B uint8
}

func (RGB) RGBA

func (c RGB) RGBA() (r, g, b, a uint32)

type RGB48

type RGB48 struct {
	R, G, B uint16
}

func (RGB48) RGBA

func (c RGB48) RGBA() (r, g, b, a uint32)

Jump to

Keyboard shortcuts

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