head	1.6;
access;
symbols
	pkgsrc-2026Q1:1.6.0.12
	pkgsrc-2026Q1-base:1.6
	pkgsrc-2025Q4:1.6.0.10
	pkgsrc-2025Q4-base:1.6
	pkgsrc-2025Q3:1.6.0.8
	pkgsrc-2025Q3-base:1.6
	pkgsrc-2025Q2:1.6.0.6
	pkgsrc-2025Q2-base:1.6
	pkgsrc-2025Q1:1.6.0.4
	pkgsrc-2025Q1-base:1.6
	pkgsrc-2024Q4:1.6.0.2
	pkgsrc-2024Q4-base:1.6
	pkgsrc-2024Q3:1.5.0.28
	pkgsrc-2024Q3-base:1.5
	pkgsrc-2024Q2:1.5.0.26
	pkgsrc-2024Q2-base:1.5
	pkgsrc-2024Q1:1.5.0.24
	pkgsrc-2024Q1-base:1.5
	pkgsrc-2023Q4:1.5.0.22
	pkgsrc-2023Q4-base:1.5
	pkgsrc-2023Q3:1.5.0.20
	pkgsrc-2023Q3-base:1.5
	pkgsrc-2023Q2:1.5.0.18
	pkgsrc-2023Q2-base:1.5
	pkgsrc-2023Q1:1.5.0.16
	pkgsrc-2023Q1-base:1.5
	pkgsrc-2022Q4:1.5.0.14
	pkgsrc-2022Q4-base:1.5
	pkgsrc-2022Q3:1.5.0.12
	pkgsrc-2022Q3-base:1.5
	pkgsrc-2022Q2:1.5.0.10
	pkgsrc-2022Q2-base:1.5
	pkgsrc-2022Q1:1.5.0.8
	pkgsrc-2022Q1-base:1.5
	pkgsrc-2021Q4:1.5.0.6
	pkgsrc-2021Q4-base:1.5
	pkgsrc-2021Q3:1.5.0.4
	pkgsrc-2021Q3-base:1.5
	pkgsrc-2021Q2:1.5.0.2
	pkgsrc-2021Q2-base:1.5
	pkgsrc-2021Q1:1.4.0.14
	pkgsrc-2021Q1-base:1.4
	pkgsrc-2020Q4:1.4.0.12
	pkgsrc-2020Q4-base:1.4
	pkgsrc-2020Q3:1.4.0.10
	pkgsrc-2020Q3-base:1.4
	pkgsrc-2020Q2:1.4.0.8
	pkgsrc-2020Q2-base:1.4
	pkgsrc-2020Q1:1.4.0.4
	pkgsrc-2020Q1-base:1.4
	pkgsrc-2019Q4:1.4.0.6
	pkgsrc-2019Q4-base:1.4
	pkgsrc-2019Q3:1.4.0.2
	pkgsrc-2019Q3-base:1.4
	pkgsrc-2019Q2:1.2.0.8
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.2.0.6
	pkgsrc-2019Q1-base:1.2
	pkgsrc-2018Q4:1.2.0.4
	pkgsrc-2018Q4-base:1.2
	pkgsrc-2018Q3:1.2.0.2
	pkgsrc-2018Q3-base:1.2
	pkgsrc-2018Q2:1.1.0.4
	pkgsrc-2018Q2-base:1.1
	pkgsrc-2018Q1:1.1.0.2
	pkgsrc-2018Q1-base:1.1;
locks; strict;
comment	@# @;


1.6
date	2024.12.06.22.55.26;	author mef;	state Exp;
branches;
next	1.5;
commitid	cXScnqH5QihjIuAF;

1.5
date	2021.06.06.06.19.31;	author mef;	state Exp;
branches;
next	1.4;
commitid	93btLR6kfWfnj2WC;

1.4
date	2019.08.08.19.53.42;	author brook;	state Exp;
branches;
next	1.3;
commitid	K2VPfA0XCw7xfgyB;

1.3
date	2019.07.31.16.01.57;	author brook;	state Exp;
branches;
next	1.2;
commitid	ijdaRs57aZSwgdxB;

1.2
date	2018.07.28.14.40.44;	author brook;	state Exp;
branches;
next	1.1;
commitid	hIRYb3oU4xMfBULA;

1.1
date	2018.02.07.20.40.58;	author minskim;	state Exp;
branches;
next	;
commitid	tXusiNvuSsop8YpA;


desc
@@


1.6
log
@(..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).
@
text
@# $NetBSD: Makefile,v 1.5 2021/06/06 06:19:31 mef Exp $

R_PKGNAME=	colorspace
R_PKGVER=	2.1-1
CATEGORIES=	graphics

MAINTAINER=	minskim@@NetBSD.org
COMMENT=	Toolbox for manipulating and assessing colors and palettes
LICENSE=	modified-bsd

# Packages suggested but not available:
#   '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

.include "../../math/R/Makefile.extension"
.include "../../mk/bsd.pkg.mk"
@


1.5
log
@(graphics/R-colorspace) Updated 1.4.1 to 2.0.1

# colorspace 2.0-1

* Added two new palettes from the viridis family (_viridis_/_viridisLite_),
  namely `"Rocket"` and `"Mako"` in `sequential_hcl()`.

* Assure that all `do.call()` for the `ggplot2` scale functions are made with
  `envir = parent.frame()` in order to avoid problems with non-standard
  evaluation, as reported in:
  <https://stackoverflow.com/questions/66049336/paste-name-in-scale-fill-color-in-colorspace-does-not-work-in-a-loop>

* New function `extract_transparency()` for extracting alpha transparency
  from color specifications, either as numeric, integer, character or hexmode vectors.
  This accompanies the previously available function `adjust_transparency()`
  allowing for more flexible modifications of alpha transparencies in colors.


# colorspace 2.0-0

* Release of version 2.0-0 accompanying the publication of the paper
  "colorspace: A Toolbox for Manipulating and Assessing Colors and Palettes"
  in the _Journal of Statistcal Software_ at <https://doi.org/10.18637/jss.v096.i01>.
  The paper is a compact version of the package web page
  (<https://colorspace.R-Forge.R-project.org/>) including some more discussion
  of related methods and software along with some more references to the
  scientific literature.

* New function `adjust_transparency()` that adjusts the alpha transparency
  of some color specification and returns a hexadecimal string where
  the alpha component is modified, added, or removed.

* Added three more palettes from Fabio Crameri's scientific color maps
  (_scico_), namely `"Hawaii"` and `"Batlow"` in `sequential_hcl()` and
  `"Roma"` in `divergingx_hcl()`.

* Additional option `cvd` in `swatchplot()` so that color vision deficiency
  emulation can be included on the fly.

* Added _binned_ _ggplot2_ color scales (in addition to _discrete_ and
  _continuous_).

* Changed the default colors in `specplot()` from `rainbow_hcl(3)` to
  `qualitative_hcl(3)` which is darker and has more chroma. Also, the order
  of the legend has been reversed (Luminance / Chroma / Hue) so that the
  legend labels are closer to the axis that they pertain to.

* Improve the documentation of the `LUV()` and `LAB()` color spaces,
  pointing out that the `U`/`V` and `A`/`B` coordinates are _typically_
  in [-100, 100] but can actually be exceeded by highly saturated colors.

* Bug fix in `diverging_hcl()` and `divergingx_hcl()` where the central color
  of the diverging palette could sometimes collapse to transparent white
  due to numerical inaccuracies on 32-bit platforms.

* Improve the documentation of the `HSV()` and `HLS()` color spaces.
  These do NOT necessarily correspond to sRGB;  we can convert from
  these to any RGB space that we choose (linear or non-linear,
  any whitepoint).  In particular, if we want to convert from one of
  these color spaces to XYZ or beyond, we must first convert to a
  specific RGB color space.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2019/08/08 19:53:42 brook Exp $
d4 1
a4 1
R_PKGVER=	2.0-1
d12 11
a22 3
#  'kernlab', 'mvtnorm', 'vcd', 'shinyjs', 'ggplot2', 'dplyr',
#  'scales', 'png', 'jpeg', 'rcartocolor', 'scico', 'viridis',
#  'wesanderson'
d24 2
@


1.4
log
@Update all R packages to canonical form.

The canonical form [1] of an R package Makefile includes the
following:

- The first stanza includes R_PKGNAME, R_PKGVER, PKGREVISION (as
  needed), and CATEGORIES.

- HOMEPAGE is not present but defined in math/R/Makefile.extension to
  refer to the CRAN web page describing the package.  Other relevant
  web pages are often linked from there via the URL field.

This updates all current R packages to this form, which will make
regular updates _much_ easier, especially using pkgtools/R2pkg.

[1] http://mail-index.netbsd.org/tech-pkg/2019/08/02/msg021711.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2019/07/31 16:01:57 brook Exp $
d4 1
a4 1
R_PKGVER=	1.4-1
d11 6
@


1.3
log
@R-colorspace: update to version 1.4.1.

Update to the canonical form of an R package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2018/07/28 14:40:44 brook Exp $
d3 3
a5 1
CATEGORIES=	graphics R
a7 1
HOMEPAGE=	${R_HOMEPAGE_BASE}/colorspace/
a10 3
R_PKGNAME=	colorspace
R_PKGVER=	1.4-1

@


1.2
log
@Remove MASTER_SITES= from individual R package Makefiles.

Each R package should include ../../math/R/Makefile.extension, which also
defines MASTER_SITES.  Consequently, it is redundant for the individual
packages to do the same.  Package-specific definitions also prevent
redefining MASTER_SITES in a single common place.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2018/02/07 20:40:58 minskim Exp $
d3 1
a3 1
CATEGORIES=	graphics
d7 1
a7 1
COMMENT=	Color space manipulation
d11 3
a13 1
R_PKGVER=	1.3-2
a14 1
BUILDLINK_API_DEPENDS.R+=	R>=2.13.0
@


1.1
log
@graphics/R-colorspace: Import version 1.3.2

Carries out mapping between assorted color spaces including RGB, HSV,
HLS, CIEXYZ, CIELUV, HCL (polar CIELUV), CIELAB and polar
CIELAB. Qualitative, sequential, and diverging color palettes based on
HCL colors are provided along with an interactive palette picker (with
either a Tcl/Tk or a shiny GUI).
@
text
@d1 1
a1 1
# $NetBSD$
a3 1
MASTER_SITES=	${MASTER_SITE_R_CRAN:=contrib/}
@

