int_to_col: Fast conversion of colors-as-packed-RGBA-integers to...

View source: R/col_to_rgb.R

int_to_colR Documentation

Fast conversion of colors-as-packed-RGBA-integers to hexadecimal

Description

Packed RGBA values are used in R's native raster objects.

Usage

int_to_col(icol)

Arguments

icol

Integer vector (where the 4 bytes making up each integer represent the RGBA values of the color)

Value

Character vector

Examples

icols <- col_to_int(c("hotpink", "#abc", "#abcd", "#aabb99", "#aabb9980"))
int_to_col(icols)

colorfast documentation built on April 4, 2025, 1:03 a.m.