show_sprite: Show a sprite in console

Description Usage Arguments Value Examples

View source: R/pixelpuzzle.R

Description

Show a sprite in console

Usage

1
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

1
2
3
4
5
6
sprites <- define_sprite()

## show first sprite
show_sprite(sprites[[1]])
## show sprite named "sword"
show_sprite(sprites[["sword"]])

pixelpuzzle documentation built on Feb. 1, 2021, 9:05 a.m.