| render_bw | R Documentation |
Transforms an image to black and white, preserving luminance.
render_bw(
image,
rgb_coef = c(0.2126, 0.7152, 0.0722),
filename = NULL,
preview = FALSE
)
image |
3-layer RGB/4-layer RGBA array, |
rgb_coef |
Default |
filename |
Default |
preview |
Default |
A rayimg RGBA array.
#Plot the image with a title
dragon |>
render_title("Dragon", title_offset=c(10,10), title_bar_color="black",
title_size=20, title_color = "white") |>
render_bw(preview = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.