hexcolor

package module
v0.0.0-...-ae73021 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

README

hexcolor

GoDoc Build Status

License: GPL 3.0

Package for parsing hex colors.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseRGB

func ParseRGB(rgbHexString string) (color.Color, error)

ParseRGB parses a string of the form "#RGB" or "#RRGGBB" as color, where R, G and B are in the range of 0-f. Both lowercase and uppercase hex letters are accepted.

func ParseRGBA

func ParseRGBA(rgbaHexString string) (color.Color, error)

ParseRGBA is like ParseRGB, but the string is something like "#RGBA" or "#RRGGBBAA", with A being the alpha channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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