color

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RGBModel = color.ModelFunc(rgbModel)
)

Functions

func ColorToGray added in v0.3.0

func ColorToGray(c color.Color) color.Gray

func ColorToGray2 added in v0.3.0

func ColorToGray2(c color.Color) color.Gray

func RGBAToGray added in v0.3.0

func RGBAToGray(c color.RGBA) color.Gray

func RGBToGray added in v0.3.0

func RGBToGray(c RGB) color.Gray

Types

type RGB

type RGB struct {
	R, G, B uint8
}

func NewRGB

func NewRGB(r, g, b uint8) RGB

func (RGB) RGBA added in v0.3.0

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

type RGB64 added in v0.3.0

type RGB64 struct {
	R, G, B uint16
}

func NewRGB64 added in v0.3.0

func NewRGB64(r, g, b uint16) RGB64

func (RGB64) RGBA added in v0.3.0

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

Jump to

Keyboard shortcuts

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