color

package
v0.0.0-...-5db5eaf Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Gray1Model    = color.ModelFunc(gray1Model)
	NGrayAModel   = color.ModelFunc(nGrayAModel)
	Gray32Model   = color.ModelFunc(gray32Model)
	NGrayA32Model = color.ModelFunc(nGrayA32Model)
	NGrayA64Model = color.ModelFunc(nGrayA64Model)
	NRGBA128Model = color.ModelFunc(nRGBA128Model)
	NCMYKAModel   = color.ModelFunc(nCMYKAModel)
	NCMYKA80Model = color.ModelFunc(nCMYKA80Model)
)

These are color model.

Functions

This section is empty.

Types

type Gray1

type Gray1 struct {
	Y bool
}

Gray1 represents an 1-bit monochrome bitmap color.

func (Gray1) RGBA

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

RGBA implements color.Color interface's method.

type Gray32

type Gray32 struct {
	Y float32
}

Gray32 represents a 32-bit float grayscale color.

func (Gray32) RGBA

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

RGBA implements color.Color interface's method.

type NCMYKA

type NCMYKA struct {
	C, M, Y, K, A uint8
}

NCMYKA represents a non-alpha-premultiplied CMYK color, having 8 bits for each of cyan, magenta, yellow, black and alpha. NCMYKA is different from color.CMYK, CMYK is inverted value.

It is not associated with any particular color profile.

func (NCMYKA) RGBA

func (c NCMYKA) RGBA() (uint32, uint32, uint32, uint32)

RGBA implements color.Color interface's method.

type NCMYKA80

type NCMYKA80 struct {
	C, M, Y, K, A uint16
}

func (NCMYKA80) RGBA

func (c NCMYKA80) RGBA() (uint32, uint32, uint32, uint32)

RGBA implements color.Color interface's method.

type NGrayA

type NGrayA struct {
	Y uint8
	A uint8
}

func (NGrayA) RGBA

func (c NGrayA) RGBA() (uint32, uint32, uint32, uint32)

RGBA implements color.Color interface's method.

type NGrayA32

type NGrayA32 struct {
	Y uint16
	A uint16
}

func (NGrayA32) RGBA

func (c NGrayA32) RGBA() (uint32, uint32, uint32, uint32)

RGBA implements color.Color interface's method.

type NGrayA64

type NGrayA64 struct {
	Y float32
	A float32
}

func (NGrayA64) RGBA

func (c NGrayA64) RGBA() (uint32, uint32, uint32, uint32)

RGBA implements color.Color interface's method.

type NRGBA128

type NRGBA128 struct {
	R, G, B, A float32
}

func (NRGBA128) RGBA

func (c NRGBA128) RGBA() (uint32, uint32, uint32, uint32)

RGBA implements color.Color interface's method.

Jump to

Keyboard shortcuts

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