https://github.com/codenoid/string-to-hex-color
Generate hex color uniquely based on given string
https://github.com/codenoid/string-to-hex-color
Last synced: 12 months ago
JSON representation
Generate hex color uniquely based on given string
- Host: GitHub
- URL: https://github.com/codenoid/string-to-hex-color
- Owner: codenoid
- Created: 2020-09-08T00:05:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T00:34:08.000Z (over 5 years ago)
- Last Synced: 2025-03-28T15:48:21.395Z (about 1 year ago)
- Language: Go
- Size: 207 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# string-to-hex-color
Generate hex color uniquely based on given string

_example use of string-to-hex-color applied to another library_
## Installation
```go
go get -u github.com/codenoid/string-to-hex-color
```
## Usage
```go
package main
import (
"fmt"
shex "github.com/codenoid/string-to-hex-color"
)
func main() {
fmt.Println(shex.GenerateColor("Let's write Stable Software")) // #B25320
fmt.Println(shex.GenerateColor("Let's write Stable Software")) // #B25320
}
```