View source: R/ColorAdjustments.R
Darken | R Documentation |
A wrapper for the darken function of the colorspace package.
Darken(colors, percent.change = 0.25, relative = TRUE)
colors |
the color(s) input. Can be a list of colors, for example, /codedittoColors(). |
percent.change |
# between 0 and 1. the percentage to darken by. Defaults to 0.25 if not given. |
relative |
TRUE/FALSE. Whether the percentage should be a relative change versus an absolute one. Default = TRUE. |
Return a darkened version of the color in hexadecimal color form (="#RRGGBB" in base 16)
Daniel Bunis
Darken("blue") #"blue" = "#0000FF"
#Output: "#0000BF"
Darken(dittoColors()[1:8]) #Works for multiple color inputs as well.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.