Learn R Programming

GSNA (version 0.1.4.2)

intV2Color: intV2Color

Description

Converts a numeric or integer vector of length 3 containing RGB values in the range of 0 to 255 to 24 bit color specifications in the form "#FFFFFF".

Usage

intV2Color(rgb_v)

Value

A 24-bit color specification in the form "#FFFFFF".

Arguments

rgb_v

An integer or numeric vector of length 3 containing RGB channel intensities from 0 to 255.

See Also

color2IntV()

Examples

Run this code

col_v <- c( 255, 100, 240)
col <- intV2Color( col_v )

Run the code above in your browser using DataLab