clrutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HSV2RGB

func HSV2RGB(h, s, v float64) (uint8, uint8, uint8)

HSV2RGB converts hue (0-360), saturation (0-1), and brightness (0-1) to RGB.

func MixRGB

func MixRGB(r1, g1, b1 uint8, r2, g2, b2 uint8, fraction float64) (r, g, b uint8)

MixRGB mixs rgb1 with rgb2. 0 gives all rgb1, 1 gives rbg2, .5 mixes them 50/50.

func RGB2HSV

func RGB2HSV(R, G, B uint8) (h, s, v float64)

RGB2HSV converts RGB to an array containing the hue, saturation, and brightness.

func Random

func Random() (uint8, uint8, uint8)

Random returns a random color.

func ScaleBrightness

func ScaleBrightness(r, g, b uint8, scale float64) (uint8, uint8, uint8)

ScaleBrightness changes color brightness.

Types

This section is empty.

Jump to

Keyboard shortcuts

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