show_sprite: Show a sprite in console

View source: R/pixelpuzzle.R

show_spriteR 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"]])

pixelpuzzle documentation built on Feb. 16, 2023, 8:41 p.m.