color

package
v0.0.0-...-25502c3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2012 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Hue Saturation Value Alpha color package

Index

Constants

This section is empty.

Variables

View Source
var HSVAModel color.Model = color.ModelFunc(hsvaModel)

HSVAModel converts any color.Color to an HSVA color.

Functions

This section is empty.

Types

type HSVA

type HSVA struct {
	H, S, V, A float64
}

HSVAColor represents a Hue/Saturation/Value/Alpha color. H is valid within [0°, 360°]. S, V and A are valid within [0, 1].

func RGBAtoHSVA

func RGBAtoHSVA(r, g, b, a uint32) HSVA

Convert r, g, b, a to HSVA

func (HSVA) RGBA

func (self HSVA) RGBA() (r, g, b, a uint32)

RGBA() allows HSVAColor to satisfy the color.Color interface.

Jump to

Keyboard shortcuts

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