Fast Conversion of R Colors to Color Component Values and Native Packed Integer Format

Color values in R are often represented as strings of hexadecimal colors or named colors. This package offers fast conversion of these color representations to either an array of red/green/blue/alpha values or to the packed integer format used in native raster objects. Functions for conversion are also exported at the 'C' level for use in other packages. This fast conversion of colors is implemented using an order-preserving minimal perfect hash derived from Majewski et al (1996) "A Family of Perfect Hashing Methods" .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("colorfast")

1.0.1 by Mike Cheng, 2 years ago


https://github.com/coolbutuseless/colorfast


Report a bug at https://github.com/coolbutuseless/colorfast/issues


Browse source code at https://github.com/cran/colorfast


Authors: Mike Cheng [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Suggests knitr, rmarkdown, testthat


Imported by fastpng, nara.

Depended on by isocubes.

Suggested by bittermelon.


See at CRAN