hsvcolor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package hsvcolor provides HSV color models.

Index

Constants

This section is empty.

Variables

View Source
var NHSVAModel color.Model = color.ModelFunc(nhsvaModel)

NHSVAModel is a color model for NHSVA (non-alpha-premultiplied hue, saturation, and value plus alpha) colors.

Functions

This section is empty.

Types

type NHSVA

type NHSVA struct {
	H, S, V, A uint8
}

NHSVA represents a non-alpha-premultiplied 32-bit HSV color. Note that all color channels range from 0 to 255. (It is more common for hue to range from 0 to 359 and saturation and value to range from 0 to 1, but that's not what we do here.)

func (NHSVA) RGBA

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

RGBA converts an NHSVA color to alpha-premultiplied RGBA.

Jump to

Keyboard shortcuts

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