color

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

package color provides color management utilities.

Index

Constants

This section is empty.

Variables

View Source
var (
	White = color.RGBA{255, 255, 255, 255}
)

Functions

func Equal

func Equal(c1, c2 color.RGBA) bool

func FromHex

func FromHex(x string) color.RGBA

func FromLinear2sRGB

func FromLinear2sRGB(v float64) float64

FromLinear2sRGB converts a given value from linear space to sRGB space.

func FromsRGB2Linear

func FromsRGB2Linear(v float64) float64

FromsRGB2Linear converts a given value from linear space to sRGB space.

Types

type RGBA

type RGBA = color.RGBA

Jump to

Keyboard shortcuts

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