Helper function to detect HEX-colors

isHexCol(color)

Author

ipda | unhcr.org | 2020

Examples

{ isHexCol("black") isHexCol(col2hex("black")) isHexCol(rgb2hex(0, 0, 0)) }
#> [1] TRUE