powered by
The function shades or darkens an RGB value by adding black to the values.
shade(rgb_value, shade_factor = 0.1)
A vector with length \(3 \times 1\).
vector
A double that ranges between \([0, 1]\).
double
A matrix with dimensions \(3 \times 1\).
matrix
# NOT RUN { shade(c(22, 150, 230), shade_factor = 0.5) # }
Run the code above in your browser using DataLab