powered by
Check for the given color strings whether they represent gray scale colors.
colors.are.grayscale(col_strings, accept_col_names = TRUE)
logical vector
vector of RGB(A) color strings, like c("#FFFFFF", ("#FF00FF")).
c("#FFFFFF", ("#FF00FF"))
logical, whether to accept color names like 'white'. Disables all sanity checks.
colors.are.grayscale(c("#FFFFFF", "#FF00FF")); all((colors.are.grayscale(c("#FFFFFF00", "#ABABABAB"))));
Run the code above in your browser using DataLab