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.

15 lines
261 B

  1. package main
  2. import (
  3. "git.aiterp.net/lucifer/new-server/internal/color"
  4. "log"
  5. )
  6. func main() {
  7. cv, _ := color.Parse("xy:0.1944,0.0942")
  8. hs, _ := cv.ToHS()
  9. log.Println(cv.String())
  10. log.Println(hs.String())
  11. xy, _ := hs.ToXY()
  12. log.Println(xy.String())
  13. }