Package: colorfast 1.0.1

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. 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>.

Authors:Mike Cheng [aut, cre, cph]

colorfast_1.0.1.tar.gz
colorfast_1.0.1.zip(r-4.5)colorfast_1.0.1.zip(r-4.4)colorfast_1.0.1.zip(r-4.3)
colorfast_1.0.1.tgz(r-4.4-x86_64)colorfast_1.0.1.tgz(r-4.4-arm64)colorfast_1.0.1.tgz(r-4.3-x86_64)colorfast_1.0.1.tgz(r-4.3-arm64)
colorfast_1.0.1.tar.gz(r-4.5-noble)colorfast_1.0.1.tar.gz(r-4.4-noble)
colorfast_1.0.1.tgz(r-4.4-emscripten)colorfast_1.0.1.tgz(r-4.3-emscripten)
colorfast.pdf |colorfast.html
colorfast/json (API)
NEWS

# Install 'colorfast' in R:
install.packages('colorfast', repos = c('https://coolbutuseless.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/coolbutuseless/colorfast/issues

On CRAN:

5.98 score 8 stars 2 packages 6 scripts 263 downloads 4 exports 0 dependencies

Last updated 15 days agofrom:c093c5085d. Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 14 2025
R-4.5-win-x86_64OKJan 14 2025
R-4.5-linux-x86_64OKJan 14 2025
R-4.4-win-x86_64OKJan 14 2025
R-4.4-mac-x86_64OKJan 14 2025
R-4.4-mac-aarch64OKJan 14 2025
R-4.3-win-x86_64OKJan 14 2025
R-4.3-mac-x86_64OKJan 14 2025
R-4.3-mac-aarch64OKJan 14 2025

Exports:col_to_intcol_to_rgbint_to_colset_alpha

Dependencies:

C API

Rendered fromc-api.Rmdusingknitr::rmarkdownon Jan 14 2025.

Last update: 2025-01-13
Started: 2024-12-22