powered by
Packed RGBA values are used in R's native raster objects.
int_to_col(icol)
Character vector
Integer vector (where the 4 bytes making up each integer represent the RGBA values of the color)
icols <- col_to_int(c("hotpink", "#abc", "#abcd", "#aabb99", "#aabb9980")) int_to_col(icols)
Run the code above in your browser using DataLab