Skip to contents

Encode RGB colors as long integers.

Usage

rgbToLong(col)

Arguments

col

RGB matrix.

Value

Integer vector.

Examples

rgbToLong(colToRgb(c("red", "green", "blue")))
#> [1]      255    65280 16711680