package
Version:
v0.0.0-...-8583d5c
Opens a new window with list of versions in this module.
Published: Mar 6, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type RGBA struct {
R, G, B, A uint8
}
RGBA represents a traditional 32-bit alpha-premultiplied color, having 8 bits for each of red, green, blue and alpha.
ParseHex parses an hex color to RGB color
Rand returns a random RGB color
Invert returns the inverted RGB color
ToHex exports the color to hexadecimal
Source Files
¶
Click to show internal directories.
Click to hide internal directories.