Breaking Changes
- The
"indented"(formerly"triangle") wave type now uses a wider stroke
in order to better match the apparent stroke widths of the new wave types.
Users who relied on the previous visual appearance should reducedensity
to compensate.
New Features
-
New "hatch" pattern with corresponding
grid.pattern_hatch()andnames_hatch()(#97). -
New "line" pattern with corresponding
grid.pattern_line().
Unlike the "stripe" pattern which fills bands with solid colour,
"line" draws stroked lines using the device's native line rendering,
enabling all of R's built-inlinetypevalues
(including"dotdash","twodash", and custom line types specified as hex strings per?par). -
The preexisting "wave" pattern gains ten new
typevalues, areverseparameter, astaggerparameter, andnames_wave(#100, #101). -
New
mix_col()that mixes colors via Munsell color space usingaqp::mixMunsell().
Requires the suggested package{aqp}.
Bug fixes and minor improvements
-
Fixes a bug where geometry-based patterns (e.g. "stripe", "crosshatch", "wave")
could silently disappear in small viewports whenpattern_key_scale_factor
was a relatively large value (#95). -
The following "placeholder" pattern updates (#83):
-
The following placeholder pattern names are now serviced by placecats.com
- "kitten" and "kittenbw"
-
The following placeholder pattern names are now serviced by placehold.co
- "placeholder" and "placeholderbw"
-
The "placeholderbw" name now provides a pure black-and-white image (i.e. no grey).
-
-
Fixes a bug where the
"wavy"(aliases"sine","undy") and"indented"(alias"triangle") wave types had an effective wavelength of(n-1)/ntimes the requested wavelength, wherenis the number of wavelength-spaced grid positions spanning the viewport.