Provides functions for creating, modifying, and displaying bitmaps including printing them in the terminal. There is a special emphasis on monochrome bitmap fonts and their glyphs as well as colored pixel art/sprites. Provides native read/write support for the 'hex' and 'yaff' bitmap font formats and if 'monobit' https://github.com/robhagemans/monobit is installed can also read/write several additional bitmap font formats.
Package options
The following bittermelon options may be set globally via base::options():
- bittermelon.bg
Set new default
bgargument value forformat.bm_bitmap(),format.bm_pixmap(),print.bm_bitmap(), andprint.bm_pixmap().- bittermelon.col
Set new default
colargument value foras.raster.bm_bitmap()andplot.bm_bitmap().- bittermelon.compress
Set new default
compressargument value forformat.bm_bitmap(),format.bm_pixmap(),print.bm_bitmap(), andprint.bm_pixmap().- bittermelon.downscale
Set new default
downscaleargument value forformat.bm_bitmap(),format.bm_pixmap(),print.bm_bitmap(), andprint.bm_pixmap().- bittermelon.fg
Set new default
fgargument value forformat.bm_bitmap()andprint.bm_bitmap().- bittermelon.monobit_path
Set new default
monobit_pathargument value forread_monobit()andwrite_monobit().- bittermelon.px
Set new default
pxargument value forformat.bm_bitmap()andprint.bm_bitmap(). If unset both functions default topx_auto().
The following cli options may also be of interest:
- cli.num_colors
See
cli::num_ansi_colors(). If set to1Lthen theclipackage won't add any ANSI sequences.- cli.unicode
Whether UTF-8 character support should be assumed. Used by
px_auto()which is the default of thebittermelon.pxoption.
Author
Maintainer: Trevor L. Davis trevor.l.davis@gmail.com (ORCID)
Other contributors:
Frederic Cambus (Developer of included 'Spleen' font) [typographer]
Markus Kuhn (Maintainer of included 'Fixed' font) [typographer]
josehzz (Artist of included 'Farming Crops 16x16' sprites) [artist]