Learn R Programming

bittermelon (version 2.2.1)

bm_gray: Gray a bitmap

Description

bm_gray() grays a bitmap. bm_grey() is offered as an alias.

Usage

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)

Value

Depending on x either a bm_bitmap(), bm_font(), bm_list(), magick-image, "nativeRaster", bm_pixmap(), or raster object.

Arguments

x

Either a bm_bitmap(), bm_font(), bm_list(), "magick-image", "nativeRaster", bm_pixmap(), or "raster" object.

Examples

Run this code
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