combine_sprite: Combine two sprite

Description Usage Arguments Value Examples

View source: R/pixelpuzzle.R

Description

Combine two sprite

Usage

1
combine_sprite(img, img2, gap = 1)

Arguments

img

Sprite 1

img2

Sprite 2 (added on the right)

gap

Gap between the sprites

Value

Sprite

Examples

1
2
3
4
sprites <- define_sprite()
sprite1 <- sprites[["buhu"]]
sprite2 <- sprites[["sword"]]
show_sprite(combine_sprite(sprite1, sprite2))

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