Create colours from colour names in one easy step.
col2hex(x, alpha = 1)
vector of colour names or hex strings
optional transparency value in [0,1], can be per colour in x
character string of hex colours
col2hex(c("aliceblue", "firebrick"), alpha = c(1, .5))
col2hex(c("#FFFFFF", "#123456FF"), alpha = 0.1)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.