show_sprite | R Documentation |
Show a sprite in console
show_sprite(img, rownumbers = TRUE, cls = TRUE, bg = ".")
img |
Image of Sprite (vector of strings) |
rownumbers |
Show rownumbers on the left side? |
cls |
Clear Screen before drawing sprite? |
bg |
Background color, default is transparent (".") |
Prints sprite in console
sprites <- define_sprite() ## show first sprite show_sprite(sprites[[1]]) ## show sprite named "sword" show_sprite(sprites[["sword"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.