get_rgb: Gets RGB specifications from a "color" object

Description Usage Arguments Value Examples

Description

Gets RGB specifications from a "color" object

Usage

1

Arguments

col

Color whose RGB is to be returned. Hexcode, c(r,g,b), color name as character and "color" class object are all supported.

Value

A vector containing col's RGB specifications.

Examples

1
2
get_rgb("green")
get_rgb(c(255,0,255))

dpcarballo/coloR documentation built on June 1, 2019, 8:14 p.m.