View source: R/render_padding.R
| render_padding | R Documentation |
Expands an image or matrix canvas by adding constant-value padding around the original image.
render_padding(
image,
pad = 10,
color = "black",
alpha = NULL,
filename = NULL,
preview = FALSE
)
image |
3-layer RGB/4-layer RGBA array, |
pad |
Default |
color |
Default |
alpha |
Default |
filename |
Default |
preview |
Default |
A padded rayimg image or matrix.
render_padding(dragon, pad = 20) |>
plot_image()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.