cat_piece | R Documentation |
cat_piece()
generates plaintext piecepack diagrams and
outputs them using base::cat()
. cat_move()
generates
a plaintext diagram for a move within a game. cat_game()
renders an animation of a game in the terminal.
cat_piece(
df,
color = NULL,
reorient = "none",
annotate = FALSE,
...,
file = "",
annotation_scale = NULL,
style = c("Unicode", "Game Bit Mono", "Game Bit Duo")
)
cat_move(game, move = NULL, ...)
cat_game(game, ..., fps = 1)
df |
Data frame containing piece info. |
color |
How should the text be colorized.
If |
reorient |
Determines whether and how we should reorient (the angle) of pieces or symbols:
|
annotate |
If |
... |
Passed to |
file |
|
annotation_scale |
Multiplicative factor that scales (stretches) any annotation coordinates.
By default uses |
style |
If "Unicode" (default) only use glyphs in Unicode proper. If "Game Bit Duo" use glyphs in Private Use Area of "Game Bit Duo" font. If "Game Bit Mono" use glyphs in Private Use Area of "Game Bit Mono" font. |
game |
A list containing a parsed ppn game (as parsed by |
move |
Which move to cat game state (after the move, will use |
fps |
Frames per second. |
String of text diagram (returned invisibly).
See https://github.com/trevorld/game-bit-font for more information about the “Game Bit” family of fonts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.