You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
408 B

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())
}
}