check_colour_return_rgb() is deprecated as of monochromeR 0.3.0 and will
be removed in a future version. It was designed for use inside the package.
To get the red, green and blue values of a colour, use
grDevices::col2rgb() instead.
Value
A named numeric vector, c(r = , g = , b = ). An error if the
colour can't be interpreted.
Before monochromeR 0.3.0, colour names and hex codes returned a one-column
matrix. If you need that format, use as.matrix() on the result.
Examples
# Instead of check_colour_return_rgb("white", "my_colour"):
grDevices::col2rgb("white")
#> [,1]
#> red 255
#> green 255
#> blue 255
