colorfast: 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. 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.0
Suggests: testthat (≥ 3.0.0)
Published: 2024-12-16
DOI: 10.32614/CRAN.package.colorfast
Author: Mike Cheng [aut, cre, cph]
Maintainer: Mike Cheng <mikefc at coolbutuseless.com>
License: MIT + file LICENSE
NeedsCompilation: yes
Materials: NEWS
CRAN checks: colorfast results

Documentation:

Reference manual: colorfast.pdf

Downloads:

Package source: colorfast_1.0.0.tar.gz
Windows binaries: r-devel: colorfast_1.0.0.zip, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): colorfast_1.0.0.tgz, r-oldrel (arm64): colorfast_1.0.0.tgz, r-release (x86_64): colorfast_1.0.0.tgz, r-oldrel (x86_64): colorfast_1.0.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=colorfast to link to this page.