R/darken.R

darken <- function (col, factor = 1.4){
    col <- col2rgb(col/factor)
    col <- rgb(t(col), maxColorValue = 255)
    col
}
Jfortin1/Jipito documentation built on May 7, 2019, 10:36 a.m.