-
Notifications
You must be signed in to change notification settings - Fork 5
/
NEWS
111 lines (86 loc) · 5.12 KB
/
NEWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
Significant changes to the shades package are laid out below for each release.
===============================================================================
VERSION 1.4.0
- The package now handles missing values, patching up some of the limitations
of the underlying core graphics functions. In particular, shade vectors may
contain NAs, and will propagate them through manipulations, while NAs are
accepted as pass-through values when updating colour properties.
===============================================================================
VERSION 1.3.1
- A fix has been made for compatibility with changes in the next annual release
of R and its core packages.
===============================================================================
VERSION 1.3.0
- It is now possible to manipulate palette functions and ggplot2 scales using
the colour manipulation functions in this package (#5, #7). When passed one
of these objects, a modified wrapper object is returned. This allows colour
tweaks to be made to standard scales in ggplot2 plots. See the README for a
visual example.
- The gradient() function now returns a function if its second argument is
missing or NULL. This change is complementary to the one above, allowing
palette functions to be created.
- Conversions from HSV to RGB coordinates are now more precise.
===============================================================================
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)
option, and is also vectorised over its second argument (#3). Some of the
coefficients it uses internally are now pre-calculated and cached for
efficiency.
- There is now a print method for vectors of class shade.
- An empty shade vector is now explicitly an error.
- The README now includes an example of using shades with ggplot2 (#2), as
well as links to several related packages.
===============================================================================
VERSION 1.0.0
- Support for two new colour spaces has been added: LMS, a direct
representation of the response levels of each of the three colour receptor
types in the eye; and LCh, a polar representation of Lab space.
- The new dichromat() function can be used to simulate colour blindness.
- The gradient() function now additionally supports predefined colour maps from
matplotlib and ColorBrewer. Its second argument is now interpreted a little
differently.
- The hueshift() function has been removed, in favour of the more general
combination of hue() and delta(). hue(x, delta(y)) is the equivalent of the
old hueshift(x,y), and delta() can also be used with other colour properties.
- New colour property functions lightness() and chroma() have been added.
- Dimensions are now set when two or more colour properties are changed, and
the swatch() visualisation function plots multidimensional shades in a grid.
- There is now a rev() method for shades.
- The all.equal() method for shades now passes on its ellipsis argument when
checking colour coordinates.
===============================================================================
VERSION 0.2.0
- The package has been reworked to use functions from base R to warp colour
coordinates between spaces and so on. It therefore no longer depends on the
"colorspace" package, but the list of supported colour spaces has changed
somewhat as a result.
- The warp() function has been added for colour space conversions.
- New function complement() returns complementary colours, while addmix() and
submix(), plus infix shorthands, implement additive and subtractive colour
mixing.
- The new distance() function can be used to calculate a standardised measure
of the perceptual "distance" between colours.
- The shade class gains indexing and equality operators, plus methods for c(),
rep() and all.equal().
- There are now accessor functions space() and coords(), for obtaining the
current space and coordinates of colour vectors.
- The swatch() function now draws grey borders around colour boxes, to make
the delineation of near-white colours clearer.
===============================================================================
VERSION 0.1.0
- First public release.
===============================================================================