Added OKLCH color space
This commit is contained in:
parent
d5335f4bad
commit
f623fa2154
5 changed files with 151 additions and 35 deletions
|
@ -13,7 +13,23 @@ func BenchmarkRGB(b *testing.B) {
|
|||
}
|
||||
}
|
||||
|
||||
func BenchmarkFprint(b *testing.B) {
|
||||
func BenchmarkLCH(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
color.LCH(0.5, 0.5, 0.0)
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkFprintColorized(b *testing.B) {
|
||||
color.Terminal = true
|
||||
c := color.RGB(1.0, 1.0, 1.0)
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
c.Fprint(io.Discard, "")
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkFprintRaw(b *testing.B) {
|
||||
color.Terminal = false
|
||||
c := color.RGB(1.0, 1.0, 1.0)
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue