rgbv: Convert RGB notation to a hexadecimal color string.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/rgbv.R

Description

Converts a RGB string in either colon-separated or vector format to hexadecimal equivalent.

Usage

1
rgbv(colvec, maxColorValue = 255)

Arguments

colvec

A colon-separated RGB string or a three-element RGB vector.

maxColorValue

The maximum value for the RGB elements, usually the default of 255.

Value

A hexadecimal color string.

Author(s)

Sarah Goslee

See Also

rgbname, rgb

Examples

1
2
rgbv("0:255:230")
rgbv(c(0, 255, 230))

phiala/giscolor documentation built on Jan. 28, 2020, 3:35 a.m.