package main import ( "fmt" "git.aiterp.net/lucifer3/server/internal/color" "os" ) func main() { col := color.MustParse(os.Args[len(os.Args)-1]) if col, ok := col.ToXY(); ok { fmt.Println(col.String()) } if col, ok := col.ToHS(); ok { fmt.Println(col.String()) } if col, ok := col.ToHSK(); ok { fmt.Println(col.String()) } if col, ok := col.ToRGB(); ok { fmt.Println(col.String()) } }