Added HSL and HSV colors
All checks were successful
/ test (push) Successful in 15s

This commit is contained in:
Eduard Urbach 2025-03-11 14:24:41 +01:00
parent b8b0fbb57e
commit afc4092824
Signed by: eduard
GPG key ID: 49226B848C78F6C8
14 changed files with 153 additions and 48 deletions

View file

@ -8,12 +8,14 @@ import (
func TestPrint(t *testing.T) {
color.Terminal = true
color.TrueColor = true
color.RGB(1, 0, 0).Print("red\n")
color.RGB(0, 1, 0).Print("green\n")
color.RGB(0, 0, 1).Print("blue\n")
color.Terminal = false
color.TrueColor = false
color.RGB(1, 0, 0).Print("red\n")
color.RGB(0, 1, 0).Print("green\n")
@ -22,12 +24,14 @@ func TestPrint(t *testing.T) {
func TestPrintf(t *testing.T) {
color.Terminal = true
color.TrueColor = true
color.RGB(1, 0, 0).Printf("%s\n", "red")
color.RGB(0, 1, 0).Printf("%s\n", "green")
color.RGB(0, 0, 1).Printf("%s\n", "blue")
color.Terminal = false
color.TrueColor = false
color.RGB(1, 0, 0).Printf("%s\n", "red")
color.RGB(0, 1, 0).Printf("%s\n", "green")
@ -36,12 +40,14 @@ func TestPrintf(t *testing.T) {
func TestPrintln(t *testing.T) {
color.Terminal = true
color.TrueColor = true
color.RGB(1, 0, 0).Println("red")
color.RGB(0, 1, 0).Println("green")
color.RGB(0, 0, 1).Println("blue")
color.Terminal = false
color.TrueColor = false
color.RGB(1, 0, 0).Println("red")
color.RGB(0, 1, 0).Println("green")