1
0
mirror of https://github.com/6543/go-hexcolor synced 2025-05-22 10:33:25 +00:00
6543 344c8d43be
Impruve docs (#7)
* Add Usage Example (close #4)

* Add Contribute Note (close #5)

* add godocs docu
2020-09-21 06:59:23 +02:00
2020-09-10 23:30:27 +02:00
2020-09-10 23:53:05 +02:00
2020-09-21 06:59:23 +02:00
2020-09-10 17:17:39 +02:00
2020-09-10 23:53:05 +02:00
2020-09-21 06:59:23 +02:00
2020-09-21 06:59:23 +02:00
2020-09-10 16:59:30 +02:00
2020-09-10 23:13:31 +02:00
2020-09-21 06:59:23 +02:00

Hex Color Library for Go

Test License: MIT GoDoc Go Report Card

Features:

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

ToDo

  • Predefine standard colors (red, blue, ... based on CSS colors)

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.

Description
normalize hexcolor, use predefined, ...
Readme MIT 58 KiB
Languages
Go 87.1%
Makefile 12.9%