diff --git a/DESCRIPTION b/DESCRIPTION index cbf610a..6daa823 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: shades -Version: 1.1.0 -Date: 2018-02-06 +Version: 1.2.0 +Date: 2018-04-26 Title: Simple Colour Manipulation Author: Jon Clayden Maintainer: Jon Clayden diff --git a/NEWS b/NEWS index b2ad9c0..4d1a5c4 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,23 @@ Significant changes to the shades package are laid out below for each release. =============================================================================== +VERSION 1.2.0 + +- There is now support for transparency, which can be queried or modified + through the new opacity() function, which functions just like the other + colour property functions (#4). Opacity (alpha) values are stored as an + attribute with shade objects, and reflected in the RGB hex representation + only when less than 1. +- The scalefac() functional has been added, which multiplies its argument just + as delta() adds it. Both functions now accept, and concatenate, multiple + arguments for convenience. +- The usual behaviour of the colour property manipulation functions, which + vectorise over both arguments, can be suppressed by wrapping replacement + values with the recycle() function, which reverts to a standard R + "recycling" scheme with final dimensions matching the original. + +=============================================================================== + VERSION 1.1.0 - The dichromat() function now offers a pass-through (normal colour vision) diff --git a/tools/figures/ggplot-1.png b/tools/figures/ggplot-1.png index c6bbde8..ce577bb 100644 Binary files a/tools/figures/ggplot-1.png and b/tools/figures/ggplot-1.png differ diff --git a/tools/figures/ggplot-2.png b/tools/figures/ggplot-2.png index 4780377..c625744 100644 Binary files a/tools/figures/ggplot-2.png and b/tools/figures/ggplot-2.png differ