f32color

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT, Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disabled

func Disabled(c color.NRGBA) (d color.NRGBA)

func Hovered

func Hovered(c color.NRGBA) (h color.NRGBA)

func MulAlpha

func MulAlpha(c color.NRGBA, alpha uint8) color.NRGBA

func NRGBAToLinearRGBA

func NRGBAToLinearRGBA(col color.NRGBA) color.RGBA

func NRGBAToRGBA

func NRGBAToRGBA(col color.NRGBA) color.RGBA

func RGBAToNRGBA

func RGBAToNRGBA(col color.RGBA) color.NRGBA

Types

type RGBA

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

func LinearFromSRGB

func LinearFromSRGB(col color.NRGBA) RGBA

func (RGBA) Array

func (rgba RGBA) Array() [4]float32

func (RGBA) Float32

func (col RGBA) Float32() (r, g, b, a float32)

func (RGBA) Luminance

func (col RGBA) Luminance() float32

func (RGBA) Opaque

func (col RGBA) Opaque() RGBA

func (RGBA) SRGB

func (col RGBA) SRGB() color.NRGBA

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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