Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorFromHex ¶
ColorFromHex converts a hex color string of the form #RRGGBB or #RRGGBBAA to a color.RGBA. If the former is provided alpha defaults to 255.
func ColorToHex ¶ added in v0.0.1
ColorToHex converts a color.RGBA to a hex color string of the form #RRGGBB or #RRGGBBAA depending on the alpha parameter.
Types ¶
Click to show internal directories.
Click to hide internal directories.