Added HSL and HSV colors
This commit is contained in:
14
README.md
14
README.md
@ -5,6 +5,8 @@ Adds color to your terminal output.
|
||||
## Features
|
||||
|
||||
- ANSI colors
|
||||
- HSL colors
|
||||
- HSV colors
|
||||
- LCH colors
|
||||
- RGB colors
|
||||
|
||||
@ -35,6 +37,8 @@ blue.Println("blue text")
|
||||
PASS: TestPrint
|
||||
PASS: TestPrintf
|
||||
PASS: TestPrintln
|
||||
PASS: TestHSLSpectrum
|
||||
PASS: TestHSVSpectrum
|
||||
PASS: TestLCH
|
||||
PASS: TestLCHSpectrum
|
||||
PASS: TestRGB
|
||||
@ -44,10 +48,10 @@ coverage: 100.0% of statements
|
||||
## Benchmarks
|
||||
|
||||
```
|
||||
BenchmarkRGB-12 1000000000 0.3141 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkLCH-12 4780176 250.9 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkPrint-12 375394 3343 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkPrintRaw-12 3105022 387.3 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkRGB-20 100000000 14.88 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkLCH-20 5075756 227.8 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkPrint-20 1587134 755.5 ns/op 0 B/op 0 allocs/op
|
||||
BenchmarkPrintRaw-20 3166090 361.5 ns/op 0 B/op 0 allocs/op
|
||||
```
|
||||
|
||||
## License
|
||||
@ -56,4 +60,4 @@ Please see the [license documentation](https://urbach.dev/license).
|
||||
|
||||
## Copyright
|
||||
|
||||
© 2024 Eduard Urbach
|
||||
© 2024 Eduard Urbach
|
Reference in New Issue
Block a user