ggboy
package tries to recreate the original screen style of the Game Boy (DMG-01). The main function of the package is ggboy
, which transform the input image as follows.
By default, the function applies image dithering. If you want you can set dither = FALSE
to avoid it.
The images can be adjusted in several ways, such as increasing or reducing the resolution (res
), the number of colors (ncols
) or the cropping if no frame is used.
High resolution
Changing the number of colors
Avoid cropping
There are also several color palettes, which are shown in the image below. You can also pass a vector of colors as in scale_fill_gradientn
function.
There are six different types of frames available which can be selected using frame
argument. Possible values are 0, 13, 14, 19, 20, 21 and 22.
The package also allows you to get your image inside a real Game Boy body, setting graphic = TRUE
.
There is an additional function named ggboy_gif
which allows simulating the Game Boy aesthetic to gifs.
You can even specify other arguments as in the previous function, such as the body of the Game Boy.
See also