pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/R-colorspace
Module Name: pkgsrc
Committed By: mef
Date: Fri Dec 6 22:55:26 UTC 2024
Modified Files:
pkgsrc/graphics/R-colorspace: Makefile distinfo
Log Message:
(..graphics/R-colorspace) Updated 2.0.1 to 2.1.1
# colorspace 2.1-1
* In the `hclwizard()` shiny app the Python export now leverages the Python
_colorspace_ package available from PyPI at <https://pypi.org/project/colorspace/>.
For more details see the Python package documentation at
<https://retostauffer.github.io/python-colorspace/>.
* Improvement in `desaturate()`: In addition to previous input color specifications
(hex strings, named colors, RGB matrices), formal S4 color objects are now
also supported. In this case, the desaturated colors are also returned as color
objects of the same class as the input. With this improvement, `desaturate()`
behaves exactly analogous to the color vision deficiency emulation functions
which had been improved in the same way in version 2.1-0 (see below).
* Try harder to preserve the names in named color vectors when transformed with
`lighten()`, `darken()`, `adjust_transparency()`, `simulate_cvd()`, etc.
(suggested by Matias Andina).
* Make the fixed color vision deficiency simulation in linear RGB coordinates
(introduced in version 2.1-0) the default in the `cvd_emulator()` shiny app
as well.
* Minor bug fixes in `hclplot()`, the automatically generated figure titles
only use the H/L coordinates of the colors visualized. Minor fix on how
`right` (index of colors on the right hand side of a diverging palette)
is calculated.
* Support `n = 1` color in `diverging_hcl()` and `divergingx_hcl()` which then
both return the neutral color in the center of the respective palette.
# colorspace 2.1-0
* Bug fix for color vision deficiency simulations in `simulate_cvd()` based
on the work of [Machado _et al._ (2009)](https://doi.org/10.1109/TVCG.2009.113):
Following some illustrations from the supplementary materials, the transformations
in previous versions of the package had been applied to gamma-corrected sRGB
coordinates directly. However, the Machado _et al._ paper implicitly relies
on a linear RGB space (see page 1294, column 1) where their linear matrix
transformations for simulating color vision deficiencies are applied.
Therefore, a new argument `linear = TRUE` has been added to `simulate_cvd()`
(and hence in `deutan()`, `protan()`, and `tritan()`) that first maps the
provided colors to linearized RGB coordinates, applies the color vision
deficiency transformation, and then maps back to gamma-corrected sRGB
coordinates. Optionally, `linear = FALSE` can be used to restore the behavior
from previous versions where the transformations are applied directly to
the sRGB coordinates. For most colors the difference between the two
strategies is negligible but for some highly-saturated colors it becomes
more noticable, e.g., for red, purple, or orange. Thanks to Matthew Petroff
for reporting this issue and to Kenneth Knoblauch for advice and guidance.
* Improvement in `simulate_cvd()` (and hence in `deutan()`, `protan()`, and
`tritan()`): When colors are specified as hex strings or named colors, the
sRGB coordinates after transformation are rounded appropriately to integers
in 0-255. Previous versions implicitly took the floor rather than round of
the coordinates.
* Support formal S4 color objects in `simulate_cvd()` (and hence in `deutan()`,
`protan()`, and `tritan()`). In that case colors are transformed internally
to sRGB coordinates, color vision deficiency is simulated, and then a formal
S4 color object (of the same class as the input) is returned. This has the
advantage that no rounding is applied as when going through hex color strings.
Similarly, for an RGB matrix input, the output is also not rounded anymore.
* Bug fix in `scale_colour_discrete_qualitative()` (and analogously for sequential,
diverging, and divergingx) to make sure that the scale functions can also
be called within a function whose arguments are controlled by an outer
function (reported by Marcelo S. Perlin).
# colorspace 2.0-3
* Added the accessible perceptual contrast algorithm (APCA) that is under
development for the next major revision of the WCAG as an alternative
`algorithm` in `contrast_ratio()`. See <https://github.com/Myndex/SAPC-APCA>.
* Fixed a bug in `lighten()` and `darken()` for the case when some colors
were named (e.g., `"blue"`) rather than hex strings only. In that case
linear RGB rather than sRGB was incorrectly used internally (reported by
Colin Goodall).
# colorspace 2.0-2
* New function `contrast_ratio()` for computing and visualizing contrast ratios
of pairs of colors as defined in the Web Content Accessibility Guidelines (WCAG)
(<https://www.w3.org/TR/WCAG21/>) of the World Wide Web Consortium (W3C).
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/graphics/R-colorspace/Makefile \
pkgsrc/graphics/R-colorspace/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/graphics/R-colorspace/Makefile
diff -u pkgsrc/graphics/R-colorspace/Makefile:1.5 pkgsrc/graphics/R-colorspace/Makefile:1.6
--- pkgsrc/graphics/R-colorspace/Makefile:1.5 Sun Jun 6 06:19:31 2021
+++ pkgsrc/graphics/R-colorspace/Makefile Fri Dec 6 22:55:26 2024
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2021/06/06 06:19:31 mef Exp $
+# $NetBSD: Makefile,v 1.6 2024/12/06 22:55:26 mef Exp $
R_PKGNAME= colorspace
-R_PKGVER= 2.0-1
+R_PKGVER= 2.1-1
CATEGORIES= graphics
MAINTAINER= minskim%NetBSD.org@localhost
@@ -9,10 +9,20 @@ COMMENT= Toolbox for manipulating and as
LICENSE= modified-bsd
# Packages suggested but not available:
-# 'kernlab', 'mvtnorm', 'vcd', 'shinyjs', 'ggplot2', 'dplyr',
-# 'scales', 'png', 'jpeg', 'rcartocolor', 'scico', 'viridis',
-# 'wesanderson'
+# 'kernlab', 'vcd', 'rcartocolor', 'scico', 'wesanderson'
+
+TEST_DEPENDS+= R-dplyr-[0-9]*:../../math/R-dplyr
+TEST_DEPENDS+= R-ggplot2-[0-9]*:../../graphics/R-ggplot2
+TEST_DEPENDS+= R-jpeg-[0-9]*:../../graphics/R-jpeg
+TEST_DEPENDS+= R-knitr-[0-9]*:../../print/R-knitr
+TEST_DEPENDS+= R-mvtnorm-[0-9]*:../../math/R-mvtnorm
+TEST_DEPENDS+= R-png-[0-9]*:../../graphics/R-png
+TEST_DEPENDS+= R-rmarkdown-[0-9]*:../../textproc/R-rmarkdown
+TEST_DEPENDS+= R-RColorBrewer-[0-9]*:../../math/R-RColorBrewer
+TEST_DEPENDS+= R-scales-[0-9]*:../../graphics/R-scales
TEST_DEPENDS+= R-shiny-[0-9]*:../../www/R-shiny
+TEST_DEPENDS+= R-shinyjs-[0-9]*:../../www/R-shinyjs
+TEST_DEPENDS+= R-viridis-[0-9]*:../../graphics/R-viridis
USE_LANGUAGES= c
Index: pkgsrc/graphics/R-colorspace/distinfo
diff -u pkgsrc/graphics/R-colorspace/distinfo:1.5 pkgsrc/graphics/R-colorspace/distinfo:1.6
--- pkgsrc/graphics/R-colorspace/distinfo:1.5 Tue Oct 26 10:45:55 2021
+++ pkgsrc/graphics/R-colorspace/distinfo Fri Dec 6 22:55:26 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:45:55 nia Exp $
+$NetBSD: distinfo,v 1.6 2024/12/06 22:55:26 mef Exp $
-BLAKE2s (R/colorspace_2.0-1.tar.gz) = 45e0e58c33b2993e6fe03323c8d325b916b501cff506fc3cca22871d56e8fdae
-SHA512 (R/colorspace_2.0-1.tar.gz) = 59a84c3d08370e6818b26501400c74340fce283e73d549fec53e62c0ae47d476be65a589e8f35cbd17866ce8fbe926bc14021d8196bc82dc2abeec8a0cfd0db7
-Size (R/colorspace_2.0-1.tar.gz) = 2193384 bytes
+BLAKE2s (R/colorspace_2.1-1.tar.gz) = 718e03f547f8b696c670267b68c6c2076aa3f5577155f28fae9abb1f3fde8808
+SHA512 (R/colorspace_2.1-1.tar.gz) = 4d85bdbffad17cd4f9cc668386cc69ee349825883648ac8748b7ee8dc6e86a67ed6d1eb5b8d2bc49d0b9fe24d5edd9c6a50f75cb599e4bef5123812a64899491
+Size (R/colorspace_2.1-1.tar.gz) = 2141289 bytes
Home |
Main Index |
Thread Index |
Old Index