Description Usage Arguments Examples
Functions to create Unicode chess pieces and export them to HTML
1 2 3 4 5 6 | pieces_list()
chess_unicode(piece = pieces_list(), color = c("white", "black"))
chess_html(piece = pieces_list(), color = c("white", "black"),
size = 172)
|
piece |
a chess piece. Valid values can be found via |
color |
the color of the chess pieces. Valid values are white and black |
size |
the font-size to use |
1 2 3 4 5 6 7 8 | cat(chess_unicode("k"))
chess_html("r")
chess_html("n", color = "black")
white <- pieces_list() %>% lapply(chess_html, color = "white")
black <- pieces_list() %>% lapply(chess_html, color = "black")
span(div(white), div(black)) %>% browsable()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.