powered by
bm_gray() grays a bitmap. bm_grey() is offered as an alias.
bm_gray()
bm_grey()
bm_gray(x)bm_grey(x)# S3 method for bm_bitmap bm_gray(x)# S3 method for bm_list bm_gray(x)# S3 method for bm_pixmap bm_gray(x)# S3 method for `magick-image` bm_gray(x)# S3 method for nativeRaster bm_gray(x)# S3 method for raster bm_gray(x)
bm_grey(x)
# S3 method for bm_bitmap bm_gray(x)
# S3 method for bm_list bm_gray(x)
# S3 method for bm_pixmap bm_gray(x)
# S3 method for `magick-image` bm_gray(x)
# S3 method for nativeRaster bm_gray(x)
# S3 method for raster bm_gray(x)
Depending on x either a bm_bitmap(), bm_font(), bm_list(), magick-image, "nativeRaster", bm_pixmap(), or raster object.
x
bm_bitmap()
bm_font()
bm_list()
bm_pixmap()
Either a bm_bitmap(), bm_font(), bm_list(), "magick-image", "nativeRaster", bm_pixmap(), or "raster" object.
corn <- farming_crops_16x16()$corn$portrait corn_gray <- bm_gray(corn) if (cli::is_utf8_output() && cli::num_ansi_colors() >= 256L) { print(corn_gray, compress = "v") }
Run the code above in your browser using DataLab