Convert to hex code
pth_to_hex(color, ...)
pth_to_hex.default(color, ...)
pth_to_hex.pth_hex(color, ...)
pth_to_hex.character(color, ...)character or matrix with S3 class pth_mat, a
representation of a color.
other arguments as may be needed.
character with S3 class pth_hex
  pth_to_hex("#663399")
#> [1] "#663399"
#> attr(,"class")
#> [1] "pth_hex"
  pth_to_hex(c("#221133", "#442266", "#663399"))
#> [1] "#221133" "#442266" "#663399"
#> attr(,"class")
#> [1] "pth_hex"