convert_colour.Rd
Converts colours between RRGGBBAA and hex strings, in both directions.
convert_colour(x) convert_colours(x) convert_color(x) convert_colors(x)
x | character vector of hex strings, or numeric matrix of RRGGBBAA values |
---|
If a combination of hex strings with and without alpha values are supplied, those
without are assumed to have an alpha value of FF
and will be returned in the
RRGGBBAA matrix
#> [,1] [,2] [,3] #> [1,] 255 170 0#> [,1] [,2] [,3] [,4] #> [1,] 255 170 0 255 #> [2,] 255 0 170 255#> [1] "#FFAA00"#> [1] "#FFAA00FF"