R/cmyk2rgb.R

Defines functions cmyk2rgb

cmyk2rgb <- function(cmyk){
  R <- (cmyk[, 1L] - 1.0) * (cmyk[, 4L] - 1.0)
  G <- (cmyk[, 2L] - 1.0) * (cmyk[, 4L] - 1.0)
  B <- (cmyk[, 3L] - 1.0) * (cmyk[, 4L] - 1.0)

  return(rgb(R, G, B))
}

Try the DirichletReg package in your browser

Any scripts or data that you put into this service are public.

DirichletReg documentation built on May 18, 2021, 5:06 p.m.