add dat base
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user