rgb

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

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorModel = color.ModelFunc(rgbModel)

Functions

This section is empty.

Types

type Image

type Image struct {
	Pix    []uint8
	Stride int
	Rect   image.Rectangle
}

func NewImage

func NewImage(r image.Rectangle) *Image

func (*Image) At

func (p *Image) At(x, y int) color.Color

func (*Image) Bounds

func (p *Image) Bounds() image.Rectangle

func (*Image) ColorModel

func (p *Image) ColorModel() color.Model

func (*Image) RGBAAt

func (p *Image) RGBAAt(x, y int) color.RGBA

type RGB

type RGB struct {
	R, G, B uint8
}

func (RGB) RGBA

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

Jump to

Keyboard shortcuts

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