Description Usage Arguments Value Examples
Get the name of color format, Hex, Rgb, Hsl, Hsv, Name, and so on.
1 | get_format(x, na.rm = FALSE)
|
x |
a any type color string or a javascript color object specifying. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
Returns a string vector of the color format name.
1 2 3 4 5 6 | get_format("#F3A212") # "HEX"
get_format("#F3A21222") # “HEX8”
get_format("{ r: 1, g: 0, b: 0 }") # "RGB"
get_format("{ h: 0.5, s: 0.5, v: 0.5 }") # "HSL"
get_format("{ h: 0.5, s: 0.5, v: 0.5 }") # "HSV"
get_format('red') # "NAME"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.