hsv

package
v0.0.0-...-e258458 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	White = Color{H: 0x00, S: 0x00, V: 0xFF}
	Black = Color{H: 0x00, S: 0x00, V: 0x00}
)

Functions

This section is empty.

Types

type Color

type Color struct {
	H, S, V uint8
}

func (*Color) ConvertToRGB

func (hsv *Color) ConvertToRGB() (r, g, b uint8)

func (*Color) HueDec

func (h *Color) HueDec(step uint8) (newval uint8, changed bool)

func (*Color) HueInc

func (h *Color) HueInc(step uint8) (newval uint8, changed bool)

func (*Color) RGBA

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

func (*Color) SatDec

func (h *Color) SatDec(step uint8) (newval uint8, changed bool)

func (*Color) SatInc

func (h *Color) SatInc(step uint8) (newval uint8, changed bool)

func (*Color) ValDec

func (h *Color) ValDec(step uint8) (newval uint8, changed bool)

func (*Color) ValInc

func (h *Color) ValInc(step uint8) (newval uint8, changed bool)

Jump to

Keyboard shortcuts

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