normalize hexcolor, use predefined, ...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
6543 344c8d43be
Impruve docs (#7)
1 month ago
.github/workflows Use GitHub Actions (#1) 1 month ago
.gitignore Add badges to README (#2) 1 month ago
LICENSE init go-hexcolor 1 month ago
Makefile add Makefile & update README 1 month ago
README.md Impruve docs (#7) 1 month ago
doc.go Impruve docs (#7) 1 month ago
go.mod add test 1 month ago
go.sum Add badges to README (#2) 1 month ago
hexcolor.go Impruve docs (#7) 1 month ago
hexcolor_test.go Impruve docs (#7) 1 month ago

README.md

Hex Color Library for Go

Test License: MIT GoDoc Go Report Card

Features:

  • Normalize/Parse hex color
  • convert from/to color.RGBA

ToDo

Usage

Download: go get -u github.com/6543/go-hexcolor

Example:

import (
	"fmt"
	"github.com/6543/go-hexcolor"
)

func main() {
	c, err := hexcolor.NewHexColor("#adf")
	if err != nil {
		panic(err)
	}
	fmt.Println(c.ToString())
}

Contribution

Fork repository, clone it, make changes, push to new branch and submit a pull request.