Added HSL and HSV colors
This commit is contained in:
@ -7,13 +7,13 @@ import (
|
||||
)
|
||||
|
||||
func BenchmarkRGB(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
color.RGB(1.0, 1.0, 1.0)
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkLCH(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
color.LCH(0.5, 0.5, 0.0)
|
||||
}
|
||||
}
|
||||
@ -22,7 +22,7 @@ func BenchmarkPrint(b *testing.B) {
|
||||
color.Terminal = true
|
||||
c := color.RGB(1.0, 1.0, 1.0)
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
c.Print("")
|
||||
}
|
||||
}
|
||||
@ -31,7 +31,7 @@ func BenchmarkPrintRaw(b *testing.B) {
|
||||
color.Terminal = false
|
||||
c := color.RGB(1.0, 1.0, 1.0)
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
for b.Loop() {
|
||||
c.Print("")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user