colorf

package
v0.0.0-...-79bc5c6 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RGBAf

func RGBAf(clr color.Color) (r, g, b, a float64)

Types

type Alpha

type Alpha struct {
	A float64
}

func (Alpha) RGBA

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

func (Alpha) RGBAf

func (c Alpha) RGBAf() (r, g, b, a float64)

type Colorf

type Colorf interface {
	RGBAf() (r, g, b, a float64)
}

colorf.Color != color.Colorf

type Gray

type Gray struct {
	Y float64
}

func (Gray) RGBA

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

func (Gray) RGBAf

func (c Gray) RGBAf() (r, g, b, a float64)

type RGBA

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

func (RGBA) RGBA

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

func (RGBA) RGBAf

func (c RGBA) RGBAf() (r, g, b, a float64)

Jump to

Keyboard shortcuts

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