R/colors.R

Defines functions rcolors distinctColors

#' @importFrom Polychrome createPalette
#' @noRd
distinctColors <- function(n, argsList) {
  f <- function(...) {
    createPalette(n, ...)
  }
  do.call(f, argsList)
}

#' @importFrom colorsGen randomColor
rcolors <- function(n, argsList) {
  f <- function(...) {
    randomColor(n, ...)
  }
  do.call(f, argsList)
}
stla/gyro documentation built on Nov. 4, 2023, 1 p.m.