Releases: jolars/qualpalr
Releases · jolars/qualpalr
qualpalr 0.4.4
qualpalr 0.4.3
Minor changes
qualpal()
gains an argument,n_threads
, for specifying the number
of threads to use when computing the distance matrix between colors.- C++ functions call namespaces explicitly using
::
. - Documentation for hue and saturation in
qualpal()
has been fixed.
(Closes #2, thanks @jflycn).
qualpalr 0.4.2
Major changes
- Palettes are no longer generated randomly. qualpalr previuosly started
with a random sample of colors before running the optimization scheme but now
instead picks a starting set of linearly spaced colors.
Minor changes
- C++ functions are registered via Rcpp.
Bug fixes
autopal()
erroneously requiredcolorspace
to be a string.
qualpalr 0.4.1
Bug fixes
- Fixed
autopal()
which was broken since the minimum color difference
returned was always 0 due to a bug inqualpal()
.
Minor changes
- Now registers compiled functions.
qualpalr 0.4.0
Major changes
autopal()
is a new function that tweaks the amount of color vision
deficiency adapation to match a target color difference.qualpal()
argumentcolorspace
now also accepts amatrix
or
data.frame
of RGB colors.
Minor changes
qualpal()
sorts palettes in order of increasing color distinctness.qualpal()
argumentcolorblind
has been made defunct.- Documentation for
qualpal()
has been improved. - Colors are now generated with
randtoolbox::torus()
instead of
randtoolbox::sobol()
.
qualpalr 0.3.1
Bug fixes
- Dropped a C++ header that caused the package build to fail
on some platforms. - Fixed issues with unitialized variables in the internal farthest points
optimizer.
qualpalr 0.3.0
New features
- Improved algorithm for finding distinct colors. (For details
see this.) - Revamped the color deficiency handling to include almost all cases of color
deficiency using the methods described in
Machado 2010,
now including tritanopia as well as anomalous trichromacies (deuteranomaly,
tritanomaly, and protanomaly). This is controlled via thecvd_severity
argument toqualpal()
that allows the user to set the severity of color
deficiency to adapt to:0
for normal vision and1
for dichromatic vision
(protanopia, deuteranopia, or tritanopia).
Minor improvements
- Distance and color picking algorithms have been rewritten in C++ using Rcpp,
RcppParallel, and RcppArmadillo. - Phased out the
...
argument toqualpal
. - Lightness range of the predefined rainbow palette increased to [0, 1].
- Changed argument name of
colorblind
tocvd
(for color vision deficiency)
since the function now adapts to less severe versions of color deficiency. Using
colorblind
is deprecated and will throw a warning.
Bug fixes
- Fixed typos and invalid links in the Introduction to qualpalr vignette.
qualpalr 0.2.1
New features
- qualpalr can now adapt to color deficiencies by transforming the given color
subspace to simulate protanopia or deuteranopia and then picks colors. This
has the side-effect of decreasing the distinctness of color palettes when
colorblind
is used, but is more consistent with user input. - Redesigned the method by which qualpal picks colors. Now initializes a point
cloud of colors, projects it to DIN99d space, and picks points greedily. - The introduction to qualpalr vignette has been expanded with a thorough
description of how qualpalr picks colors.
Bug fixes and minor improvements
- Simulations for tritanopia were dropped since there is no reliable source
to explain how sRGB ranges should be converted (as there is for deuteranopia
and protanopia in Vienot et al 1999). - Added tests using data from Vienot et al 1999 to check that color blind
simulations work properly. - Fixed a sampling bug wherein the square root of saturation was taken after
scaling to the provided range, which generated different ranges than intended. - Switched to the sobol quasi-random sequence instead of torus.
- Moved from using
grDevices::convertColor
to formulas from
Bruce Lindbloom for color conversions,
since the former function inaccurately converts colors. - Deprecated
...
inqualpal
since the function no longer uses an optimizer.