R/xyz100.R

Defines functions to_xyz100.default to_xyz100

#' Convert to xyz100
#'
#' Each class used to express a color, e.g. pth_hex, pth_cieluv,
#' will need to implement each of these xyz100-conversion methods.
#'
#' Note that we are exporting the S3 methods, but not the generic.
#'
#' @noRd
#'
to_xyz100 <- function(color, ...) {
  UseMethod("to_xyz100")
}

#' @export
#'
to_xyz100.default <- function(color, ...) {
  stop(
    glue::glue("No method for class {class(color)}")
  )
}
ijlyttle/colorpath documentation built on Sept. 13, 2022, 7:44 p.m.