Discover Packages
go-hep.org/x/hep
groot
rsrv
internal
hexcolor
package
Version:
v0.36.0
Opens a new window with list of versions in this module.
Published: Nov 15, 2024
License: BSD-3-Clause
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
Documentation
¶
HexModel converts any Color to an Hex color.
func HexToRGBA(h Hex ) (r, g, b, a uint8 )
Converts an Hex string to RGBA.
If alpha is not specified, it defaults to 255
If it is not a valid hexadecimal number of the right width, a horrible yellow
color is returned
Hex represents an RGB color in hexadecimal format.
The length must be 3 or 6 characters, preceded or not by a '#'.
RGBAToHex converts an RGBA to a Hex string.
If a == 255, the A is not specified in the hex string
RGBA returns the alpha-premultiplied red, green, blue and alpha values
for the Hex.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.