Number of colors
pth_n_color(color, ...)
# S3 method for default
pth_n_color(color, ...)
# S3 method for character
pth_n_color(color, ...)
# S3 method for pth_hex
pth_n_color(color, ...)
# S3 method for pth_mat
pth_n_color(color, ...)
character
or matrix
with S3 class pth_mat
, a
representation of a color.
other args (not used)
integer
number of colors
pth_n_color(c("#000000", "#663399", "#FFFFFF"))
#> [1] 3