Color Calculations with Emphasis on Spectral Data
Overview
Calculate with spectral properties of light sources, materials, cameras, eyes, and scanners. Build complex systems from simpler parts using a spectral product algebra. For light sources, compute CCT, CRI, SSI, and IES TM-30 reports. For object colors, compute optimal colors and Logvinenko coordinates. Work with the standard CIE illuminants and color matching functions, and read spectra from text files, including CGATS files. Estimate a spectrum from its response. A user guide and 9 vignettes are included.
- added function
referenceSpectraTM30()
From NEWS.md in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Glenn Davis <gdavis@gluonics.com>’
Found the following (possibly) invalid file URIs:
URI: <gdavis@gluonics.com>
From: inst/doc/blueflame.pdf
URI: <gdavis@gluonics.com>
From: inst/doc/convexity.pdf
URI: <gdavis@gluonics.com>
From: inst/doc/emulation.pdf
URI: <gdavis@gluonics.com>
From: inst/doc/gallery.pdf
URI: <gdavis@gluonics.com>
From: inst/doc/inversion.pdf
URI: <gdavis@gluonics.com>
From: inst/doc/lens-aging.pdf
URI: <gdavis@gluonics.com>
From: inst/doc/optimals.pdf- NOTE11 OK, 2 NOTENow
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 72includes a package overview page
- Examples that run
- 95%54 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran) · 2 never run
- Exported functions with examples
- 75%
- Documented parameters
- 92%
- Return-value docs
- 100%
- Help pages citing references
- 56%
- Blue Flame and Green Comet - being a Spectral Analysis of Comet Vapor PDF
- colorSpec User Guide
- Convexity and Transitions PDF
- Emulation of one Camera by another Camera PDF
- Estimating a Spectrum from its Response - Inverse Colorimetry PDF
- Phenol Red - pH Indicator
- Photon Counting
- Plotting Chromaticity Loci of Optimal and Schrodinger Colors - the MacAdam Limits PDF
- The Effect of the Aging Human Lens on Color Vision PDF
- Viewing Object Colors in a Gallery PDF
Downloads
Dependencies
Installing colorSpec adds 1 package (0 with compiled code, 1.1 MB of source tarballs). Heaviest: logger 1.1 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.8-0Latest
- RR 4.5.0 released · 2025-04-11
- 1.7-02025-02-12 · diff ↗ ·
added 6 exports
computeTM30, insideOptimalColors, sectionSchrodingerColors, insideSchrodingerColors, plot.TM30, print.TM30 - 1.6-0
- RR 4.4.0 released · 2024-04-24
- 1.5-02024-01-28 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.4-02022-05-04 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.3-02021-12-20 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 1.2-12020-04-01 · diff ↗
- 1.1-12019-12-07 · diff ↗
- 1.0-12019-06-24 · diff ↗ ·
added 4 exports
canonicalOptimalColors, responsivityMetrics, bandRepresentation, bandMaterial
Show 12 earlier eventsHide 12 earlier events
- 0.9-12019-05-31 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.8-32019-03-04 · diff ↗ ·
removed 4 exports
plotPatchesRGB, CCTfromXYZ, CCTfromxy, CCTfromuvadded 3 exports
computeSSI, sectionOptimalColors, plotOptimals2D - 0.7-5
- RR 3.5.0 released · 2018-04-23
- 0.7-32018-04-02 · diff ↗ ·
added 9 exports
as.colorSpec, is.radiometric, actinometric, is.actinometric, ptransform, emulate, as.data.frame.colorSpec, atmosTransmittance, CCTfromuv - 0.6-22017-12-04 · diff ↗
- 0.6-1
- RR 3.4.0 released · 2017-04-21
- 0.5-32016-05-17 · diff ↗
- 0.5-22016-05-15
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-05-15
- Total releases
- 17 / 10 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 108 KB / 1 file
- Download size
- 3.1 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("colorSpec")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.