README.md

gameboyr

library(gameboyr)

Two built in image matrices rstats and apollo

gboy(rstats)

Running gboy_demo() prints the original image (in greyscale), the crop (in greyscale) and the final Game Boy image. This is slow to run if the original image is large.

gboy_demo(apollo)

Varying crop, ncols and res allows for customisation of the final output

gboy(apollo)
gboy(apollo, crop=FALSE)
gboy(apollo, crop=FALSE, ncols =10)
gboy(apollo, crop=FALSE, ncols = 20, res=300)

Change colour gradient with cols

gboy(apollo, ncols = 4, cols=c("black", "orange", "white"))



cj-holmes/gameboyr documentation built on Aug. 30, 2020, 12:02 a.m.