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" <doi:10.1093/comjnl/39.6.547>.
Version: | 1.0.1 |
Suggests: | knitr, rmarkdown, testthat (≥ 3.0.0) |
Published: | 2025-01-13 |
DOI: | 10.32614/CRAN.package.colorfast |
Author: | Mike Cheng [aut, cre, cph] |
Maintainer: | Mike Cheng <mikefc at coolbutuseless.com> |
BugReports: | https://github.com/coolbutuseless/colorfast/issues |
License: | MIT + file LICENSE |
URL: | https://github.com/coolbutuseless/colorfast |
NeedsCompilation: | yes |
Materials: | NEWS |
CRAN checks: | colorfast results |
Reference manual: | colorfast.pdf |
Vignettes: |
C API (source, R code) |
Package source: | colorfast_1.0.1.tar.gz |
Windows binaries: | r-devel: colorfast_1.0.1.zip, r-release: colorfast_1.0.1.zip, r-oldrel: colorfast_1.0.1.zip |
macOS binaries: | r-release (arm64): colorfast_1.0.1.tgz, r-oldrel (arm64): colorfast_1.0.1.tgz, r-release (x86_64): colorfast_1.0.1.tgz, r-oldrel (x86_64): colorfast_1.0.1.tgz |
Old sources: | colorfast archive |
Reverse imports: | fastpng |
Reverse linking to: | fastpng |
Reverse suggests: | bittermelon |
Please use the canonical form https://CRAN.R-project.org/package=colorfast to link to this page.