HexToRgb: Convert a Hexstring Color to a Matrix With Three...

Description Usage Arguments Value Author(s) See Also Examples

Description

Converts a hexstring color to matrix with 3 red/green/blue rows.

Usage

1
HexToRgb(hex)

Arguments

hex

a color or a vector of colors specified as hexadecimal string of the form "#rrggbb" or "#rrggbbaa"

Value

a matrix with 3 rows.

Author(s)

Andri Signorell <andri@signorell.net>

See Also

HexToCol

Examples

1
HexToRgb(c("#ADD8E6", "#FA1572"))


Search within the DescTools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.