im_mono: Create a monotone image

View source: R/pictplot.R

im_monoR Documentation

Create a monotone image

Description

Create a monotone image

Usage

im_mono(color, height, width)

Arguments

color

single numeric for grayscale images, or three numeric values for RGB (color) images.

height

image height

width

image width

Value

an image

Examples

plot(im_mono(0.5, 128, 128)) # a gray square
plot(im_mono(c(1, 0.2, 0.2), 64, 128)) # a red rectangle

tsuda16k/pictplot documentation built on March 1, 2023, 8:44 p.m.