colors.are.grayscale | R Documentation |
Check for the given color strings whether they represent gray scale colors.
colors.are.grayscale(col_strings, accept_col_names = TRUE)
col_strings |
vector of RGB(A) color strings, like |
accept_col_names |
logical, whether to accept color names like 'white'. Disables all sanity checks. |
logical vector
colors.are.grayscale(c("#FFFFFF", "#FF00FF"));
all((colors.are.grayscale(c("#FFFFFF00", "#ABABABAB"))));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.