R/internal.R

Defines functions color2hex

#' @importFrom grDevices col2rgb rgb
#' @noRd
color2hex <- function(color){
  if(is.null(color)) return(NULL)
  RGB <- col2rgb(color)[,1]
  rgb(RGB["red"], RGB["green"], RGB["blue"], maxColorValue = 255)
}

Try the shinyChakraSlider package in your browser

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

shinyChakraSlider documentation built on Aug. 31, 2020, 5:11 p.m.