package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 13, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func HSV2RGB(h, s, v float64) (uint8, uint8, uint8)
-
func MixRGB(r1, g1, b1 uint8, r2, g2, b2 uint8, fraction float64) (r, g, b uint8)
-
func RGB2HSV(R, G, B uint8) (h, s, v float64)
-
func Random() (uint8, uint8, uint8)
-
func ScaleBrightness(r, g, b uint8, scale float64) (uint8, uint8, uint8)
HSV2RGB converts hue (0-360), saturation (0-1), and brightness (0-1) to RGB.
MixRGB mixs rgb1 with rgb2. 0 gives all rgb1, 1 gives rbg2, .5 mixes them 50/50.
RGB2HSV converts RGB to an array containing the hue, saturation, and brightness.
Random returns a random color.
ScaleBrightness changes color brightness.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.