Package: bittermelon 2.1.0-6

bittermelon: Bitmap Tools

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.

Authors:Trevor L. Davis [aut, cre], Frederic Cambus [tyg], Markus Kuhn [tyg], josehzz [art]

bittermelon_2.1.0-6.tar.gz
bittermelon_2.1.0-6.zip(r-4.5)bittermelon_2.1.0-6.zip(r-4.4)bittermelon_2.1.0-6.zip(r-4.3)
bittermelon_2.1.0-6.tgz(r-4.4-any)bittermelon_2.1.0-6.tgz(r-4.3-any)
bittermelon_2.1.0-6.tar.gz(r-4.5-noble)bittermelon_2.1.0-6.tar.gz(r-4.4-noble)
bittermelon_2.1.0-6.tgz(r-4.4-emscripten)bittermelon_2.1.0-6.tgz(r-4.3-emscripten)
bittermelon.pdf |bittermelon.html
bittermelon/json (API)
NEWS

# Install 'bittermelon' in R:
install.packages('bittermelon', repos = c('https://trevorld.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/trevorld/bittermelon/issues

On CRAN:

5.91 score 6 stars 1 packages 660 downloads 69 exports 3 dependencies

Last updated 5 days agofrom:dad825ba61. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 15 2024
R-4.5-winOKNov 15 2024
R-4.5-linuxOKNov 15 2024
R-4.4-winOKNov 15 2024
R-4.4-macOKNov 15 2024
R-4.3-winOKNov 15 2024
R-4.3-macOKNov 15 2024

Exports:as_bm_bitmapas_bm_fontas_bm_listas_bm_pixmapblock2ucpbm_bitmapbm_boldbm_callbm_clampbm_composebm_compressbm_distortbm_downscalebm_editbm_expandbm_extendbm_flipbm_fontbm_formatbm_glowbm_graybm_greybm_heightsbm_invertbm_lapplybm_listbm_maskbm_optionsbm_outlinebm_overlaybm_padbm_padding_lengthsbm_pixel_pickerbm_pixmapbm_printbm_replacebm_resizebm_rotatebm_shadowbm_shiftbm_trimbm_widthscol_bitmapcol2hexcol2intfarming_crops_16x16hex2ucpint2colint2ucpis_bm_bitmapis_bm_fontis_bm_listis_bm_pixmapis_combining_characteris_ucpname2ucppx_asciipx_autopx_unicoderange2ucpread_hexread_monobitread_yaffstr2ucpucp_sortucp2labelwrite_hexwrite_monobitwrite_yaff

Dependencies:clipngUnicode

Introduction to bittermelon

Rendered frombittermelon.Rmdusingknitr::rmarkdownon Nov 15 2024.

Last update: 2024-06-25
Started: 2024-06-16

Readme and manuals

Help Manual

Help pageTopics
Extract or replace parts of a bitmap/pixmap matrix[.bm_bitmap [.bm_matrix [.bm_pixmap [<-.bm_bitmap [<-.bm_pixmap
Cast to a bitmap matrix objectas_bm_bitmap as_bm_bitmap.array as_bm_bitmap.bm_bitmap as_bm_bitmap.bm_pixmap as_bm_bitmap.character as_bm_bitmap.default as_bm_bitmap.glyph_bitmap as_bm_bitmap.grob as_bm_bitmap.lofi-matrix as_bm_bitmap.magick-image as_bm_bitmap.matrix as_bm_bitmap.maze as_bm_bitmap.nativeRaster as_bm_bitmap.pattern_square as_bm_bitmap.pattern_weave as_bm_bitmap.pixeltrix as_bm_bitmap.pixmapGrey as_bm_bitmap.pixmapIndexed as_bm_bitmap.pixmapRGB as_bm_bitmap.raster
Coerce to bitmap font objectsas_bm_font as_bm_font.default as_bm_font.list
Coerce to bitmap list objectsas_bm_list as_bm_list.bm_list as_bm_list.character as_bm_list.default as_bm_list.list
Cast to a pixmap matrix objectas_bm_pixmap as_bm_pixmap.array as_bm_pixmap.bm_bitmap as_bm_pixmap.bm_pixmap as_bm_pixmap.default as_bm_pixmap.glyph_bitmap as_bm_pixmap.grob as_bm_pixmap.lofi-matrix as_bm_pixmap.magick-image as_bm_pixmap.matrix as_bm_pixmap.maze as_bm_pixmap.nativeRaster as_bm_pixmap.pattern_square as_bm_pixmap.pattern_weave as_bm_pixmap.pixeltrix as_bm_pixmap.pixmapGrey as_bm_pixmap.pixmapIndexed as_bm_pixmap.pixmapRGB as_bm_pixmap.raster
Cast bitmap/pixmap objects to an arrayas.array.bm_bitmap as.array.bm_pixmap
Convert to data frame with pixel (x,y) coordinatesas.data.frame.bm_bitmap as.data.frame.bm_pixmap
Cast bitmap/pixmap objects to a (normal) matrixas.matrix.bm_bitmap as.matrix.bm_matrix as.matrix.bm_pixmap
Bittermelon bitmap matrix objectbm_bitmap
Execute a function call on bitmap objectsbm_call
Clamp bitmap valuesbm_clamp bm_clamp.bm_bitmap bm_clamp.bm_list bm_clamp.bm_pixmap bm_clamp.magick-image bm_clamp.nativeRaster bm_clamp.raster
Compose graphemes in a bitmap list by applying combining marksbm_compose
Compress bitmaps by a factor of twobm_compress bm_compress.bm_bitmap bm_compress.bm_list bm_compress.bm_pixmap bm_compress.magick-image bm_compress.nativeRaster bm_compress.raster
Resize bitmaps via distortion.bm_distort bm_distort.bm_bitmap bm_distort.bm_list bm_distort.bm_pixmap bm_distort.magick-image bm_distort.nativeRaster bm_distort.raster bm_downscale
Edit a bitmap via text editorbm_edit
Expand bitmaps by repeating each row and/or columnbm_expand bm_expand.bm_bitmap bm_expand.bm_list bm_expand.bm_pixmap bm_expand.magick-image bm_expand.nativeRaster bm_expand.raster
Extend bitmaps on the sides with extra pixelsbm_extend bm_extend.bm_bitmap bm_extend.bm_list bm_extend.bm_pixmap bm_extend.magick-image bm_extend.nativeRaster bm_extend.raster
Flip (reflect) bitmapsbm_flip bm_flip.bm_bitmap bm_flip.bm_list bm_flip.bm_pixmap bm_flip.magick-image bm_flip.nativeRaster bm_flip.raster
Bitmap font objectbm_font
Gray a bitmapbm_gray bm_gray.bm_bitmap bm_gray.bm_list bm_gray.bm_pixmap bm_gray.magick-image bm_gray.nativeRaster bm_gray.raster bm_grey
Widths or heights of bitmapsbm_heights bm_heights.bm_list bm_heights.bm_matrix bm_heights.magick-image bm_heights.nativeRaster bm_heights.raster bm_widths bm_widths.bm_list bm_widths.bm_matrix bm_widths.magick-image bm_widths.nativeRaster bm_widths.raster
Invert (negate) a bitmapbm_invert bm_invert.bm_bitmap bm_invert.bm_list bm_invert.bm_pixmap bm_invert.magick-image bm_invert.nativeRaster bm_invert.raster
Modify bitmap listsbm_lapply
Bitmap list objectbm_list
Modify bitmaps via masking with a 'mask' bitmapbm_mask bm_mask.bm_bitmap bm_mask.bm_list bm_mask.bm_pixmap bm_mask.magick-image bm_mask.nativeRaster bm_mask.raster
Get bittermelon optionsbm_options
Compute "outline" bitmap of a bitmapbm_outline bm_outline.bm_bitmap bm_outline.bm_list bm_outline.bm_pixmap bm_outline.magick-image bm_outline.nativeRaster bm_outline.raster
Merge bitmaps by overlaying one over anotherbm_overlay bm_overlay.bm_bitmap bm_overlay.bm_list bm_overlay.bm_pixmap bm_overlay.magick-image bm_overlay.nativeRaster bm_overlay.raster
Adjust bitmap padding lengthsbm_pad bm_pad.bm_bitmap bm_pad.bm_list bm_pad.bm_pixmap bm_pad.magick-image bm_pad.nativeRaster bm_pad.raster
Compute bitmap padding lengthsbm_padding_lengths bm_padding_lengths.bm_bitmap bm_padding_lengths.bm_list bm_padding_lengths.bm_pixmap bm_padding_lengths.magick-image bm_padding_lengths.nativeRaster bm_padding_lengths.raster
Bitmap pixel pickerbm_pixel_picker bm_pixel_picker.bm_bitmap bm_pixel_picker.bm_pixmap bm_pixel_picker.raster
Bittermelon pixmap matrix objectbm_pixmap
Print bitmap objectsbm_format bm_print
Replace a color in a bitmap with another colorbm_replace bm_replace.bm_bitmap bm_replace.bm_list bm_replace.bm_pixmap bm_replace.magick-image bm_replace.nativeRaster bm_replace.raster
Resize bitmaps by trimming and/or extendingbm_resize bm_resize.bm_bitmap bm_resize.bm_list bm_resize.bm_pixmap bm_resize.magick-image bm_resize.nativeRaster bm_resize.raster
Rotate bitmaps 0, 90, 180, or 270 degreesbm_rotate bm_rotate.bm_list bm_rotate.bm_matrix bm_rotate.magick-image bm_rotate.nativeRaster bm_rotate.raster
Bitmap shadow, bold, and glow effectsbm_bold bm_bold.bm_bitmap bm_bold.bm_list bm_bold.bm_pixmap bm_bold.magick-image bm_bold.nativeRaster bm_bold.raster bm_glow bm_glow.bm_bitmap bm_glow.bm_list bm_glow.bm_pixmap bm_glow.magick-image bm_glow.nativeRaster bm_glow.raster bm_shadow bm_shadow.bm_bitmap bm_shadow.bm_list bm_shadow.bm_pixmap bm_shadow.magick-image bm_shadow.nativeRaster bm_shadow.raster
Shift elements within bitmapsbm_shift bm_shift.bm_bitmap bm_shift.bm_list bm_shift.bm_pixmap bm_shift.magick-image bm_shift.nativeRaster bm_shift.raster
Trim bitmapsbm_trim bm_trim.bm_list bm_trim.bm_matrix bm_trim.magick-image bm_trim.nativeRaster bm_trim.raster
Combine bitmap objectsc.bm_bitmap c.bm_font c.bm_list c.bm_pixmap
Combine bitmap/pixmap objects by rows or columnscbind.bm_bitmap cbind.bm_pixmap rbind.bm_bitmap rbind.bm_pixmap
Colors to standardized hex stringscol2hex
Color to (native) integer conversionscol2int int2col
Sprites for twenty farming cropsfarming_crops_16x16
Get Unicode code pointsblock2ucp hex2ucp int2ucp is_ucp name2ucp range2ucp str2ucp
Test if the object is a bitmap objectis_bm_bitmap
Test if the object is a bitmap font objectis_bm_font
Test if the object is a bitmap glyph list objectis_bm_list
Test if the object is a pixmap objectis_bm_pixmap
S3 Ops group generic methods for bitmap objectsOps.bm_bitmap Ops.bm_list Ops.bm_pixmap
Plot bitmap/pixmap objectsas.raster.bm_bitmap as.raster.bm_pixmap col_bitmap plot.bm_bitmap plot.bm_matrix plot.bm_pixmap
Print bitmap objectsformat.bm_bitmap print.bm_bitmap px_ascii px_auto px_unicode
Print pixmap objectsformat.bm_pixmap print.bm_pixmap
Read and write hex bitmap font filesread_hex write_hex
Read and write bitmap font files using monobitread_monobit write_monobit
Read and write yaff bitmap font filesread_yaff write_yaff
max, min, and range for bitmap objectsSummary.bm_list
Other Unicode utilitiesis_combining_character ucp2label ucp_sort