colour

package
v0.0.0-...-aa26060 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2025 License: BSD-2-Clause Imports: 1 Imported by: 2

Documentation

Overview

Package colour implements a float32-based colour model.

Package colour implements a float32-based colour model.

Index

Constants

This section is empty.

Variables

View Source
var Float32NRGBAModel color.Model = color.ModelFunc(float32NrgbaModel)

Float32NRGBAModel implements the colour model for Float32RGBA colour data.

View Source
var Float64NRGBAModel color.Model = color.ModelFunc(float64NrgbaModel)

Float64NRGBAModel implements the colour model for Float64RGBA colour data.

Functions

This section is empty.

Types

type Float32NRGBA

type Float32NRGBA struct {
	R float32
	G float32
	B float32
	A float32
}

Float32NRGBA represents a non-alpha-premultiplied float32 color.

func (Float32NRGBA) RGBA

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

type Float64NRGBA

type Float64NRGBA struct {
	R float64
	G float64
	B float64
	A float64
}

Float64NRGBA represents a non-alpha-premultiplied float64 color.

func (Float64NRGBA) RGBA

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

Jump to

Keyboard shortcuts

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