domino_tiles() generates a data frame of dominoes tiles.
By default will generate all the dominoes tiles of a double-6 set.
Arguments
- n
The number of doubles in a set e.g.
n = 7for double-6 set,n = 10for a double-9 set,n = 13for a double-12 set.- ...
Should be left empty.
- side
Either "face" or "back".
- piece_side
Either "tile_face" or "tile_back".
- suit
"Bottom" half of domino. Will be coerced by
domino_suit().- rank
"Top" half of domino. Will be coerced by
piece_rank().- cfg
"dominoes" or perhaps "dominoes_black", "dominoes_blue", "dominoes_green", "dominoes_red", "dominoes_white", or "dominoes_yellow".
- x, y
Cartesian coordinates (numeric vectors)
- angle
Rotation of dominoes (numeric vector of degrees, counter-clockwise). Will be coerced by
piece_angle().
Value
A tibble::tibble() data frame with the following columns:
"piece_side"
"suit"
"rank"
"cfg" (optional, defaults to
"piecepack")"x"
"y"
"angle" (optional, defaults to
0).
This data frame is compatible with piecepackr::render_piece() and likely ppcli::cat_piece().