Skip to contents

grid_add_origami() draws origami fold symbols for a box jacket. grid_add_origami_bb() draws origami fold symbols optimized for Boardgame Barrio's Small Board Game Jackets.

Usage

grid_add_origami_bb()

grid_add_origami(
  ...,
  xc = unit(0.5, "npc"),
  yc = unit(0.5, "npc"),
  width = unit(JACKET_4x6_FRONT_WIDTH, "inches"),
  height = unit(JACKET_4x6_HEIGHT, "inches"),
  depth = unit(JACKET_4x6_SPINE_WIDTH, "inches")
)

Arguments

...

Ignored.

xc, yc

Center of the jacket as grid::unit() objects.

width

Front/back panel width as a grid::unit() object.

height

Jacket height as a grid::unit() object.

depth

Spine width as a grid::unit() object.

Value

NULL invisibly. As a side effect draws origami fold symbols on the active graphics device.

Examples

grid::grid.newpage()
vp <- grid::viewport(width=11, height=8.5, default.units="in",
                     x=0.5, y=0.5, just=c("left", "bottom"))
grid::pushViewport(vp)
pnpmisc:::grid_add_mock_jacket()
grid_add_origami()
grid::popViewport()