Learn R Programming

colorplane (version 0.5.0)

rgb2hex: convert rgb colors to hex colors

Description

convert rgb colors to hex colors

Usage

rgb2hex(r, g, b, alpha)

Value

a hex color represenation as `character` vector

Arguments

r

the red color component

g

the green color component

b

the blue color component

alpha

the alpha component