bittermelon {bittermelon} | R Documentation |
bittermelon: Bitmap Tools
Description
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
option may be set globally via base::options()
:
- bittermelon.bg
Set new default
bg
argument value forformat.bm_bitmap()
,format.bm_pixmap()
,print.bm_bitmap()
, andprint.bm_pixmap()
.- bittermelon.col
Set new default
col
argument value foras.raster.bm_bitmap()
andplot.bm_bitmap()
.- bittermelon.compress
Set new default
compress
argument value forformat.bm_bitmap()
,format.bm_pixmap()
,print.bm_bitmap()
, andprint.bm_pixmap()
.- bittermelon.downscale
Set new default
downscale
argument value forformat.bm_bitmap()
,format.bm_pixmap()
,print.bm_bitmap()
, andprint.bm_pixmap()
.- bittermelon.fg
Set new default
fg
argument value forformat.bm_bitmap()
andprint.bm_bitmap()
.- bittermelon.monobit_path
Set new default
monobit_path
argument value forread_monobit()
andwrite_monobit()
.- bittermelon.px
Set new default
px
argument 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 to1L
then thecli
package 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.px
option.
Author(s)
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]
See Also
Useful links:
Report bugs at https://github.com/trevorld/bittermelon/issues