show_sprite {pixelpuzzle} | R Documentation |
Show a sprite in console
Description
Show a sprite in console
Usage
show_sprite(img, rownumbers = TRUE, cls = TRUE, bg = ".")
Arguments
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 (".") |
Value
Prints sprite in console
Examples
sprites <- define_sprite()
## show first sprite
show_sprite(sprites[[1]])
## show sprite named "sword"
show_sprite(sprites[["sword"]])
[Package pixelpuzzle version 1.0.1 Index]