Added OKLCH color space

This commit is contained in:
2024-03-06 00:18:51 +01:00
parent 13f4c5fb0f
commit 30838ca0b6
5 changed files with 151 additions and 35 deletions

View File

@ -4,7 +4,9 @@ Adds color to your terminal output.
## Features
- Truecolor output
- RGB color space
- OKLCH color space
- Truecolor terminal output
## Installation
@ -22,15 +24,19 @@ red.Println("red text")
## Tests
```
PASS: TestColor
PASS: TestNoColors
PASS: TestColors
PASS: TestRainbow
coverage: 100.0% of statements
```
## Benchmarks
```
BenchmarkRGB-12 1000000000 0.3139 ns/op 0 B/op 0 allocs/op
BenchmarkFprint-12 25758495 45.38 ns/op 0 B/op 0 allocs/op
BenchmarkRGB-12 1000000000 0.3132 ns/op 0 B/op 0 allocs/op
BenchmarkLCH-12 11214220 107.1 ns/op 0 B/op 0 allocs/op
BenchmarkFprintColorized-12 6356535 188.4 ns/op 0 B/op 0 allocs/op
BenchmarkFprintRaw-12 27374659 43.76 ns/op 0 B/op 0 allocs/op
```
## License