Skip to content
/ hexcolor Public

Hex image/color implementation for go

License

Notifications You must be signed in to change notification settings

g4s8/hexcolor

Repository files navigation

hexcolor

Hex image/color implementation for go

Verify GoDoc

Usage

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

Example:

import "github.com/g4s8/hexcolor"
import "image/color"

func main() {
  var c color.Color
  c, err := hexcolor.Parse("#fc12bd")
  if err != nil {
    panic(err)
  }
}

See godoc for more details.

Contribution

Fork repository, clone it, make changes, check with go build && go test && go vet, push to new branch and submit a pull request.