col2sRGB | R Documentation |
This function takes R color strings and converts them into colorspaces::sRGB values. It utilizes grDevices::col2rgb for conversion.
col2sRGB(col)
col |
A character vector of color names or hexadecimal color codes. |
An object of class "sRGB" containing the red, green, and blue components of the color.
col2sRGB("red")
col2sRGB("#FF0000")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.