conversion

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package conversion provides a way to convert a color from the RGBA color space to HSV.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RGBAToHSV

func RGBAToHSV(rValue, gValue, bValue, aValue uint32) (h, s, v float64)

RGBAToHSV transforms a color in the RGBA color space into the HSV equivalent. The formulas used can be found on Wikipedia. https://en.wikipedia.org/wiki/HSL_and_HSV#Color_conversion_formulae

Types

This section is empty.

Jump to

Keyboard shortcuts

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