Answers for "R lighten color"

0

R darekn color

darken <- function(color, factor=1.4){
    col <- col2rgb(color)
    col <- col/factor
    col <- rgb(t(col), maxColorValue=255)
    col
}
Posted by: Guest on September-30-2020
0

R lighten color

lighten <- function(color, factor=1.4){
    col <- col2rgb(color)
    col <- col*factor
    col <- rgb(t(col), maxColorValue=255)
    col
}
Posted by: Guest on September-30-2020

Browse Popular Code Answers by Language