Upcoming breaking changes in R 4.2 for grid::grobCoords() and grid::grobPoints() required changes being made in {piecepackr} as well.
However {piecepackr} users probably won’t need to update any of their code due to these changes (#270).:
{piecepackr} exports new S3 grobCoords() / grobPoints() methods that works for grob objects returned by pieceGrob() and pp_cfg()$get_grob() (for type = "normal") as well as grob objects returned by pmap_piece(). They return lists of lists with (x,y) coordinates of the polygons that bound the game pieces in the format expected for grid::grobCoords() methods according to the R version number.grobPoints.piece() we now export the S3 method grobPoints.pp_grobCoords() and the grob objects returned by pieceGrob() and pp_cfg()$get_grob() (for type = "normal") now inherit the additional class “pp_grobCoords”.size layout produced by save_print_and_play() is no longer incorrectly rotated from landscape to portrait mode (#269).animate_piece()’s annotate argument unnamed is now deprecated. Instead either use its annotate argument named e.g. annotate = "cartesian" or instead don’t provide this argument (and let it use its default TRUE value). In a future version this argument will be moved behind the ....save_print_and_play() no longer automatically assumes that the generated print-and-play file should automatically be released under the CC BY-SA 4.0 license. To continue to release under the CC BY-SA 4.0 license you should set the cfg argument’s spdx_id style/binding to “CC-BY-SA-4.0” (i.e. cfg$spdx_id = "CC-BY-SA-4.0") before callingsave_print_and_play()`.
Several features that were deprecated in 2020 have been removed:
The following utility functions have been removed:
checkersGrob(c, s, t, n), use pp_shape(s, t)$checkers(n, gp=gpar(fill=c)) instead.concaveGrobFn(n, t, r), use pp_shape(paste0("concave", n), t, r)$shape instead.convexGrobFn(n, t), use pp_shape(paste0("convex", n), t)$shape instead.get_shape_grob_fn(s, t, r, b), use pp_shape(s, t, r, b)$shape instead.gridlinesGrob(c, s, t, l, n), use pp_shape(s, t)$gridlines(n, gp=gpar(col=c, lex=l)) instead.halmaGrob(...), use pp_shape("halma")$shape(...) instead.hexlinesGrob(c, s, n), use pp_shape(s)$hexlines(n, gp=gpar(col=c)) instead.kiteGrob(...), use pp_shape("kite")$shape(...) instead.matGrob(c, s, t, mw, n), use pp_shape(s, t)$mat(mw, n, gp=gpar(fill=c)) instead.pyramidGrob(...), use pp_shape("pyramid")$shape(...) instead.The following pp_cfg() R6 class public method has been removed:
get_pictureGrob(), use get_grob(piece_type, suit, rank, type="picture") instead.The following pp_cfg() “style” has been removed:
shadow_fn, use op_grob_fn to indicate a custom function for drawing in an oblique projection.animate_piece() can be used to create board game animations using either the suggested package {animation} or {gifski} (#251). Adding transition effects between moves (i.e. n_transitions > 0) requires the suggested package {tweenr}.
scale_x_piece() and scale_y_piece() are wrappers around ggplot2::scale_x_continuous() and ggplot2::scale_y_continuous() with better defaults for board game diagrams. The functions returned by label_letter() labels with letters, label_counting() labels with counting numbers, and breaks_counting() generates breaks at the counting numbers to more easily generate (i.e. chess) algebraic notation coordinates as commonly used in board game diagrams (#252).
The following enhancements to the configurations returned by game_systems():
New piecepack_inverted configuration (#256). The standard piecepack with its color scheme inverted. Intended to aid in highlighting special pieces in diagrams.
New reversi configuration (#258). “board_face” provides lined boards with colored backgrounds. “board_back” provides checkered boards. “bit_face” / “bit_back” provides circular game tokens with differently colored sides: red paired with green, black paired with white, and blue paired with yellow.
Improvements to save_print_and_play():
Now supports a dev argument and dev.args argument that allows one to customize which graphic device (and its arguments) is used to generate the print-and-play files.
Now natively supports bitmap file formats “bmp”, “jpeg”, “png”, and “tiff”. but output_filename will need to have a “C integer format” in the string (e.g. "piecepack%02d.png") so it can generate multiple “pages”.
Now supports size “4x6” to create a piecepack print-and-play layout for 4x6 (photo print) size documents (#162).
pieces = "piecepack". Will throw an error if you try to create (piecepack) “pyramids”, “matchsticks”, or “subpack” print-and-play layouts.output_filename = "piecepack%02d.png".The license of the generated print-and-play file is now customized by the cfg argument’s spdx_id style/binding (#235).
save_print_and_play() will then create a license section with that license’s “full name”, a URL, and in case of a Creative Commons license add a “button mark” badge. If left NULL we will now omit the license section but print a message saying we omitted it (unless quietly = TRUE).
New argument quietly. Unless quietly = FALSE will now message() about missing metadata.
The “title” page was tweaked and improved. In particular it should now be able to handle any license with a SPDX Identifier.
Improvements to support adding a “bleed” zone around pieces:
pieceGrob() and grid.piece() now support a bleed argument.
bleed = TRUE we add a “bleed” zone around the piece.width and height should be the width and height of the piece plus bleed zone. If width or height is NA we will add 1/8 inch bleeds (about 3.18 mm).bleed = TRUE is incompatible with op_scale > 0.pp_cfg() now supports a grob_with_bleed_fn style that can be used to set a custom function for drawing the piece with bleed. The default grob_with_bleed_fn function tries to guess a good solid bleed color and draws it around the base piece.
pp_cfg() supports a new spdx_id “style” and an associated active binding to update it. This is meant to refer to the SPDX Identifier for the graphical design license. save_print_and_play() can now use this field to customize the License info for the generated print-and-play layout (#235).
spdx_license_list is a dataset for the SPDX License List. It is intended as an aid for developers writing print-and-play layout generators or board game ruleset generators.
render_piece() should now handle its dev.args argument properly.pmap_piece() now simply returns list() if its .l argument has zero length or number of rows (instead of throwing an error).game_systems()’s piecepack configurations have been improved. The suit text on the backs are better sized and the suit text has been removed from the faces.piece_side = "pawn_base" with pieceGrob().The following pp_cfg() R6 class public method has been deprecated:
get_shadow_fn(), use get_op_grob() to get complete oblique projection grob.save_piece_obj() on a “joystick” pawn (returned by some game_systems() configurations if pawn = "joystick"). In general we cannot save Wavefront OBJ files for “composite” pieces such as “joystick” pawns although “peg-doll” pawns are an exception.New piece_mesh() function that creates {rayvertex} objects (#247).
{rayvertex}.{rayvertex} object by setting rayvertex_fn in pp_cfg() configuration list.piece_mesh can be used as the .f argument in render_piece() (#255)The following enhancements to the configurations returned by game_systems():
New function render_piece() renders an image of game pieces to a file or graphics device. It is a wrapper around pmap_piece() that can auto-size files and graphic devices, apply axes offsets, annotate coordinates, and set up rayrender scenes (#245).
New function geom_piece() provides {ggplot2} bindings (#209).
aes_piece() helps create an appropriate matching ggplot2::aes() “mapping”.geom_piece() requires a fixed scale coordinate system with an aspect ratio of 1 as provided by ggplot2::coord_fixed().geom_piece() also requires that cfg is a character vector (and not a pp_cfg() object). In particular if using op_transform() one should set its argument cfg_class = "character" if intending for use with geom_piece().{ggplot2}.New function aabb_piece() which calculates axis-aligned bounding box (AABB) for set of game pieces with and without an “oblique projection”.
New function has_font() which returns TRUE or FALSE if it detects a given font is provided by the OS. Needs either 1) Suggested package {systemfonts} or
pdffonts installed.The R6 object returned by pp_shape() now has a new pattern() method that fills the shape with a specified pattern. Requires the suggested package {gridpattern} (#228).
pieceGrob() and grid.piece() now support a new type argument which modifies which type of grid grob is used.
Can be either "normal" (default), "picture", or "raster". "picture" exports to (temporary) svg and re-imports as a grImport2::pictureGrob. "raster" exports to (temporary) png and re-imports as a grid::rasterGrob. The latter two can be useful if drawing pieces really big or small and don’t want to mess with re-configuring fontsizes and linewidths.
Now defaults for the following piecepackr function arguments may now be set globally via base::options():
piecepackr.cfg Sets a new default for the cfg argument.piecepackr.default.units Sets a new default for the default.units argument.piecepackr.envir Sets a new default for the envir argument.piecepackr.op_angle Sets a new default for the op_angle argument.piecepackr.op_scale Sets a new default for the op_scale argument.piecepackr.trans Sets a new default for the trans argument.{readobj} is installed then the default piece3d() method will import Wavefront OBJ files with readobj::read.obj() instead of rgl::readOBJ(). In particular readobj::read.obj() can successfully triangulate the “meeple” shape and the “roundrect” shape (#220).alpha transparency parameter in grid.piece() / pieceGrob().game_systems() now provides a message() if style = "dejavu" and has_font("Dejavu Sans") is FALSE.picturePieceGrobFn() when its filename_fn argument does not support a cfg argument.The use_pictureGrob argument of pieceGrob() and grid.piece() is now deprecated in favor of the new type argument. Use type = "picture" instead of use_pictureGrob = TRUE.
rgl package requirement to 0.106.8 in order to avoid a bug introduced by 0.106.6).The following changes in pp_cfg() configuration lists seem unlikely to affect any users (but theoretically could do so):
lacks_rank style of pp_cfg() to a character vector that does not include “card_back”.n_ranks + 1L when drawn (instead of 0) and for a “piece_side” that is assumed to have a rank we impose an assumption that the rank will not exceed n_ranks + 2L (replacing with n_ranks + 2L if more than that). This now mirrors the pre-existing behaviour with suits. For example if n_ranks is set to 6 then the style background_color.r7 = "blue" will set the background color for pieces that lack a rank to “blue”.Function game_systems() pawn argument now supports a “joystick” value (#183). This allows one to draw a “joystick” style "pawn_top" in grid, rgl, and rayrender with the “piecepack” game system configurations.
"pawn_face") are not supported in grid.piece() / pieceGrob() but are supported in piece3d() (rgl) and piece() (rayrender).as_top = "pawn_face" in op_transform() (when using pmap_piece()).The configuration lists supported by pp_cfg() now support two new “styles” (#237):
lacks_rank: a character vector of “piece_side”’s that we should assume do not vary by rank. By default these are the piecepack components that do not vary by rank plus “card_back”.lacks_suit: a character vector of “piece_side”’s that we should assume do not vary by suit. By default these are the piecepack components that do not vary by suit plus “card_back”.pp_cfg() objects now make their cache available as a public field named cache (#242):
cachem package cache API. In particular one could choose replace it with cachem::cache_mem() to cap the amount of memory that can used by the cache. Note our cache uses keys that include hyphens and underscores which older versions of the cachem package did not support.pp_cfg() has a random prefix so (with a high probability) multiple objects could theoretically share the same cache.reset() method which clears it.The function that can be passed into the filename_fn argument of picturePieceGrobFn() can now accept an optional fifth argument named cfg that will (if present) be passed a pp_cfg() object.
Can now draw “top”, “left”, “right”, and “base” “edge” sides of two-sided tokens in grid (grid.piece() / pieceGrob()) if not using an 3D oblique projection (op_scale over 0) (#135).
grid.piece() / pieceGrob() (grid) when using a 3D oblique projection (op_scale over 0) but are supported in piece3d() (rgl) and piece() (rayrender).The “peg-doll” pawn (available via game_systems() pawn argument) now has basic support for a piecepack "pawn_top" in grid (#184). Previously only had support in rgl and rayrender.
Piecepack pyramid dimensions have been fixed to better reflect their actual physical size (#241). Their layout in the print-and-play layouts produced by save_print_and_play() has also been updated.
The appearance of piecepack pyramids returned by game_systems() now more closely resemble the original piecepack pyramids.
AA_to_R() is now more robust to minor numerical errors in axis_x and axis_y values.
Fixed bug in op_transform() when calculating “z”-coordinate when a piece overlaps with multiple pieces and the “latest” one isn’t actually the “highest” one.
pp_cfg() objects now store more information in their internal lists (which can be exported via as.list()) including any inferred n_ranks and n_suits.
pp_cfg()’s print() method now sorts fields by name and collapses vectors into a single string.
Several of pp_cfg()’s R6 class’s fields are now active bindings.
Fixed bug when setting custom pp_cfg() configuration list “rgl_fn” values.
The following pp_cfg() R6 class active bindings are now deprecated:
cache_shadow. Use the new cache_op_fn instead.i_unsuit. Add one to the n_suits field instead.No user-facing changes (we tweak our examples/tests so R CMD check passes without issue on CRAN’s new ‘M1mac’ build).
Function game_systems() now returns the following new configurations:
New alternative Wavefront OBJ file generating functions intended to be used with the obj_fn attribute in pp_cfg() “configuration lists”:
save_ellipsoid_obj() creates an ellipsoid piece colored with that piece’s background_color. Currently used for the go “stones” in game_systems() “go” configuration. Could also be used for colored “marble / ball” pieces (#176).save_peg_doll_obj() creates a “peg doll” piece colored with that piece’s edge_color and with a “pawn belt” around its “waist” controlled by that suit and rank’s belt_face component (#184).Function game_systems() now accepts new argument round. If TRUE then the (retangular) tiles and cards will have a “roundrect” shape instead of a “rect” shape (the default) (#226). NB. piece3d (rgl bindings) currently cannot import the “roundrect” shape.
Function game_systems() now accepts new argument pawn. If "token" (the default) piecepack pawns are a two-sided token with a “halma” shape. If "peg-doll" then piecepack pawns will be a “peg doll” with a “pawn belt” (#184). NB. grid.piece (grid bindings) currently cannot draw the “peg-doll” style pawn.
game_systems() now have simple graphics using this packages built-in meeple shape (#193).game_systems() now supports a 15th “Joker” “rank” for the first four “suits”. This means all the Playing cards in Unicode now has a corresponding card in the “playing_cards_tarot” configuration (suggested Joker mapping is “White” = suit 1, “Black” = suit 2, and “Red” = suit 4)pmap_piece() now simply returns list() if its output has zero observations.file2grob() fixes a bug when importing images using the magick package (currently any image that is not PNG, JPEG, or SVG).save_piece_obj(): if multiple graphics devices are open it should no longer accidentally switch the “active” device (#239).save_print_and_play() now does six copies of the “matchstick_face” component for six ranks and four suits. It used to do four copies of the “matchstick_face” and “matchstick_back” component for six ranks and five suits but a “standard” set of matchsticks is six copies. If there is sufficient space it will also add some additional (piecepack) dice (#194).There are no user-facing breaking changes in piecepackr’s API but the internal grid structure of the grobs drawn/returned by grid.piece(), pieceGrob(), and pmap_piece() have been changed to make it easier to query or edit the grid graphics post initial drawing with functions like grid::grid.get(), grid::grid.edit(), grid::grid.reorder() etc. (#205).
grid.piece() and pieceGrob() now has a “piece” class and “named slots” which match the arguments of grid.piece().grid::grid.force() to view/edit its internal grob “children”.grid::gPath.grobPoints() methods have been written for the “grob” returned by grid.piece() / pieceGrob() and the “grob” returned by pmap_piece().name in .l then pmap_piece() will now generate/replace a unique name by concatenating piece. with a unique id if it exists or if it does not then by row number in order to better label the “children” of the returned gTree grob object (#223).The following utility functions have been deprecated in favor of methods provided by the new pp_shape() object:
checkersGrob(c, s, t, n), use pp_shape(s, t)$checkers(n, gp=gpar(fill=c)) instead.concaveGrobFn(n, t, r), use pp_shape(paste0("concave", n), t, r)$shape instead.convexGrobFn(n, t), use pp_shape(paste0("convex", n), t)$shape instead.get_shape_grob_fn(s, t, r, b), use pp_shape(s, t, r, b)$shape instead.gridlinesGrob(c, s, t, l, n), use pp_shape(s, t)$gridlines(n, gp=gpar(col=c, lex=l)) instead.halmaGrob(...), use pp_shape("halma")$shape(...) instead.hexlinesGrob(c, s, n), use pp_shape(s)$hexlines(n, gp=gpar(col=c)) instead.kiteGrob(...), use pp_shape("kite")$shape(...) instead.matGrob(c, s, t, mw, n), use pp_shape(s, t)$mat(mw, n, gp=gpar(fill=c)) instead.pyramidGrob(...), use pp_shape("pyramid")$shape(...) instead.New function pp_shape() returns an R6 object that provides the following methods to create various grobs for all the “shape”’s supported by pp_cfg():
shape() returns a grob of the shape.mat() returns a grob of a matting “mat” within the shape.mat_width controls how “wide” the matting should be.gridlines() returns a grob of “gridlines” within the shape.checkers() returns a grob of “checkers” within the shape.hexlines() returns a grob of “hexlines” within the shape.polyclip() returns a grob that is an “intersection”, “minus”, “union”, or “xor” of another grob. Note unlike gridGeometry::polyclipGrob it can directly work with a pieceGrob “clip grob” argument.Default functions used by save_piece_obj(), piece3d(), piece() now support a “top”, “base”, “left”, and “right” side for the two-sided token components: “bit”, “board”, “card”, “matchstick”, “pawn”, “saucer”, and “tile” (#135).
Function game_systems() now returns a “meeple” configuration with “standard” meeple “bit” pieces (#232).
pp_cfg() now supports a “roundrect” (rounded rectangle) shape (#214, #229).shape_r style.pp_cfg() now supports a “meeple” shape (#104). Meeple coordinates were extracted from Meeple icon by Delapouite / CC BY 3.0.pp_cfg() now supports setting multiple styles by using a greater-than-length-one vectors (as well as continuing to support previously-supported comma-separated strings).R_to_AA() now always returns an axis-angle parameterization with positive axis_z value (#219).R_to_AA() for some 3D rotations with an “exactly” 180 degree angle (in the axis-angle representation).AA_to_R() now accepts an optional axis_z argument and automatically normalizes the axis vector. In particular R_to_AA(AA_to_R(...)) can now be used to normalize alternative axis-angle parameterizations with non-unit axis vectors and/or negative axis_z values.is_color_invisible() will now correctly classify as “invisible” colors with an alpha channel value set to 0.pp_cfg()$get_piece_opt() now also contains a back value indicating whether this is a back of a piece (and hence for some shapes may need to be flipped across a vertical line) and a bleed_color value indicating a good color for a “bleed” effect (e.g. for print-and-play layouts) (#211).op_transform() for pieces whose “shape” is a non-symmetric (across vertical axis) polygon.grid.piece() and pmap_piece() now returns the grob invisibly if draw=TRUE as documented (while continuing to draw the grob to the active graphics device).piece3d() will now try to infer a reasonable textype value by manually checking the png texture’s alpha channel.save_piece_obj(), piece3d() and piece() now have support for 3D rotations of pieces (#188) using an axis-angle representation parameterized by arguments angle, axis_x, and axis_y.AA_to_R() and R_to_AA() convert back and forth between the axis-angle representation used by piecepackr and 3D rotation matrices (post-multiplied).R_x(), R_y(), and R_z() create simple 3D rotation matrices (post-multiplied) for rotations around the x, y, and z axes.to_degrees() and to_radians() convert back and forth between degrees and radians.pp_cfg() now supports new obj_fn, rayrender_fn, and rgl_fn styles allowing further piece customization within the 3D graphics functions save_piece_obj(), piece(), and piece3d() respectively (#200).piece3d() now supports user manually setting the piece’s rgl “material” textype argument. When textures with alpha transparency are not needed then setting textype to "rgb" avoids a rglWebGL rendering bug (#187).get_shape_grob_fn() now has a back argument to indicate we are drawing the back of the shape and should reflect it across a vertical axis (#218).board_face, board_back for representing boards (#153).card_face, card_back for representing cards (#124).bit_face, bit_back for representing miscellaneous game pieces (#155).game_systems() now returns more game systems:
dice: Normal six-sided pipped dice in six color schemes (#166).checkers1, checkers2: Checkered boards and checkers. checkers1 has 1" cells and checkers2 has 2" cells (#168).dominoes, dominoes_black, dominoes_blue, dominoes_green, dominoes_red, dominoes_white, dominoes_yellow: Traditional Double-12 pipped dominoes in various color schemes (#159).playing_cards, playing_cards_colored, playing_cards_tarot (#170):
playing cards is a traditional (French-suited) deck of (Poker) playing cards.playing_cards_colored has five suits: red hearts, black spades, green clubs, blue diamonds, and yellow stars.playing_cards_tarot is a (French Bourgeois) tarot deck with four suits (hearts, spades, clubs, diamonds) with 14 ranks (including knights) plus 22 trump cards (1-21 plus an “excuse”).save_piece_obj() for writing Waveform OBJ files (and associated MTL files and png textures) (#189, #190). Note support for dice and pawns are currently rather crude.piece3d() for making graphics with the rgl package (#76).piece() for making rayrender objects.op_transform() when sorting tile faces rotated in various directions (#163).op_transform() now accepts new argument pt_thicknessfor improved handling of stacked pyramid (tops).edge_color for dice, pawns, and pyramids now defaults to the background color of piece_side.edge_color for matchsticks now defaults to the background color of the matchstick_back.game_systems() made more “standard”.pmap_piece() now supports an .f function to specify the function to apply to the rows of the data frame. By default it uses the (backwards-compatible) pieceGrob.pp_cfg()$get_depth() now has better depth calculation for pyramid faces (representing laid down pyramids).pp_cfg() now supports a new op_grob_fn style indicating which function to draw pieces with when drawing with a 3D oblique projection in grid. The older shadow_fn style alternative is now deprecated.grid.piece() (and pieceGrob()) now support a scale and alpha argument (#201).The following pp_cfg() R6 class public method is now deprecated:
get_pictureGrob(). Use get_grob(piece_type, suit, rank, type="picture") instead.The following pp_cfg “style” is now deprecated:
shadow_fn. Use the new op_grob_fn instead.game_systems() no longer returns an icehouse_pieces configuration. Configurations for Looney Pyramids can be found at https://github.com/piecepackr/piecenikrNew function picturePieceGrobFn() which returns a “grob” function that imports graphics from files found in its directory argument (#152).
New function game_systems() which returns a list of configuration objects for multiple game systems (#157):
dual_piecepacks_expansion: A companion piecepack with a special suit scheme. See https://trevorldavis.com/piecepackr/dual-piecepacks-pnp.html.
hexpack: A hexagonal extrapolation of the piecepack designed by Nathan Morse and Daniel Wilcox. See https://boardgamegeek.com/boardgameexpansion/35424/hexpack.
piecepack: A public domain game system invented by James “Kyle” Droscha. See http://www.ludism.org/ppwiki. Configuration also contains the following piecepack accessories:
piecepack matchsticks: A public domain accessory developed by Dan Burkey. See http://www.ludism.org/ppwiki/PiecepackMatchsticks.piecepack pyramids: A public domain accessory developed by Tim Schutz. See http://www.ludism.org/ppwiki/PiecepackPyramids.piecepack saucers: A public domain accessory developed by Karol M. Boyle at Mesomorph Games. See https://web.archive.org/web/20190719155827/http://www.piecepack.org/Accessories.htmlplaying_cards_expansion: A piecepack with the standard “French” playing card suits. See http://www.ludism.org/ppwiki/PlayingCardsExpansion.
subpack: A “mini” piecepack. Designed to be used with the piecepack to make piecepack “stackpack” diagrams. See http://www.ludism.org/ppwiki/StackPack.
Helper functions to_subpack() and to_hexpack() which given a piecepack configuration attempts to generate an appropriate matching (piecepack stackpack) subpack and hexpack (#161).
New function file2grob() that imports a given image file as a grob.
op_transform() for whether two pieces overlap are now more accurate (#150).op_transform() when computing bounding box for shapes when width and height are not equal.op_transform() for inferring width/height of matchsticks and shape/depth of pyramids.pp_cfg objects when a custom grob function had been set.suit_color.s2="white"pp_cfg() objects’ get_suit_color() function is now vectorized (and by default now returns the suit colors for each suit).op_transform() and new pmap_piece() argument trans to facilitate making graphics with an oblique projection (#138).save_print_and_play() function now supports adding piecepack pyramids (#37), matchsticks (#69), and subpacks (aka “travel” piecepacks) (#129) to the print-and-play layout.pp_cfg() function (and R6 class) which on-the-fly builds a cache to speed up component drawing (#112, #122). Can also signal to rule diagram functions whether the piecepack lacks certain components (#130).help("pp_utils"), help("grob_fn_helpers"), and help("grid.piece") for more info.component_opt color names are now _color instead of _col to better match “configuration lists”.draw_component has been renamed grid.piece() (and many of its arguments vectorized) and draw_components has been renamed pmap_piece()(#123).make_images has been renamed save_piece_images() and make_pnp has been renamed save_print_and_play().component_side, i_r, and i_s have been renamed piece_side, rank, and suit.make_collection and make_preview functions removed.load_configurations and read_configuration functions removed.make_pnp print-and-play layouts have been radically re-configured and renamed to save_print_and_play (#54).chip component no longer supported by piecepackr (#114)make_pnp now gets deck title from the configuration element title (#118)ribbons are now mat (as in picture frame ‘matting’) (#117)draw_preview function has been removed. Can now do grid.piece("preview_layout", cfg=cfg).get_embedded_font() function fixed.save_print_and_play() function now supports the A5 page size and is more A4 page size friendly (#54).fontface (#121) as well as width, height, and depth (#106) in configuration lists.pmap_piece() now supports angle=NA and grid.piece() no longer draws different output for components like tile_back if you specify a suit or rank (#120).credit, copyright, and description fieldscoin_arrangement (#136).ghostscript installed will automatically embed metadata in the print-and-play pdf (#93).border_lex and gridline_lex to allow customizing the width of the border and grid lines.save_piece_images()’s format argument is now vectorized.save_print_and_play() can now save a print-and-play “svg” and “ps” file (besides “pdf”).grid.piece() no longer throws a warning when use_pictureGrob==TRUE and angle!=0 (#148).pyramid_face, pyramid_left, pyramid_left, pyramid_right, pyramid_top, and pyramid_layout components (progress on #37).matchstick_face and matchstick_back components (progress on #69)pawn_layout, die_layoutLF, die_layoutRF, suitdie_layoutLF, suitdie_layoutRF`',suitrankdie_layoutLF, andsuitrankdie_layoutRF`` components (#101)Generalized star shape to concave# and # shape to convex# shape (#100). Added “pyramid” triangle shape (progress on #37).
New draw_components() function allows one to draw several piecepack components specified in a data frame (#96).
New load_configurations() function allows one to load in several JSON configuration files and/or internal piecepackr configurations in a layered (cascading) manner (#81).
Made several non-reverse-compatible API changes to configuration and piecepack image making functions and scripts.
Increased the width of a pawn belt from 1.5" to 2" (so can fit around a 5/8" diameter pawn).
Changed the “light”-french-suited symbols in the “dual” demo from “black” symbols to “white” symbols. Thanks Ron-Hale Evans for the suggestion.
Changed default color scheme
Added get_embedded_font() function and executable (#80).
Dropped pdfjoin from list of system dependencies (#77).
Added ability to configure by individual suits and/or ranks (#44).
Added Yellow Crowns demo (#53)
Added make_piecepack_images executable (#48). Renamed other executables and functions in API.
Shrunk the pawn down to ½" by ⅞" and made them directional by default (#50).
Exported component drawing function draw_component (#3, #58).
Allow styles by general component (#57) and open up primary symbol theta and r (#51).
Document exported functions in Rd pages.
Option to configure piecepack dice arrangement (#13)
Expanded Rainbow Deck demo (#64).
Fixed bugs in “orthodox” pawns (#62).
Added --border_color configuration option and fix bug in PnP border colors (#42).
Added --header_font, --dm_r, --dm_r.*, and --suit_colors.* options.
Added (or improved) --checker_colors, --gridline_colors, and --hexline_colors options.
Renamed --background_color option to --background_colors which can now vary by suit (#52)
Added --shape, --shape_theta, --shape.*, and --shape_theta.* options.
Add new and rename existing pdf metadata options in exec/collect_piecepacks.
Improved “preview” layout.
Added additional suit die to accessories pages.
Fix bug in the “suit-rank” die for 5-suited piecepacks (#41).
Added Crown and Anchor suited piecepacks demo (#46).
Added Rainbow Deck suited piecepack demo (#47).
Added Reversi-friendly piecepack demo (#21).
Added Chess-ranked piecepack demo (#24).
Added Hex-friendly piecepack demo.
Fix bugs in “orthodox” demo (#43).
Tweaked configuration in “dual” demo so first two decks are more compatible with other decks.
Tweaked fonts in all demos.
Added Simplified Hanzi decks to Chinese zodiac demo.
Tweaked “chip” shape in orthodox and Chineze zodiac demos.
Tweaked background colors in 3rd hex demo.
Tweaked background colors in 3rd crown-and-anchor demo.