hex2rgb: Give RGB color code from HEX color code

Description Usage Arguments Value Examples

View source: R/ImaginR.R

Description

Give a RGB color code matrix from HEX color code vector.

Usage

1
hex2rgb(color.vector)

Arguments

color.vector

HEX code in a vector

Value

RGB code color

Examples

1
2
3
4
5
6
# RGB color code of "Alice Blue" color:
hex2rgb("#f0f8ff")
# RGB color code of "Red" color:
hex2rgb("#ff0000")
# RGB color code of "Green" color:
hex2rgb("#008000")

PLStenger/ImaginR documentation built on May 7, 2021, 11:07 p.m.