View source: R/image_transparent_inverse.R
This function is an inverse version of
magick::image_transparent
.
While the latter makes certain colors
transparent, the former keeps them
unchanged and make others transparent.
1 | image_transparent_inverse(x, color, fuzz = 0)
|
x |
a magick image. |
color |
one or more colors you want want to keep unchanged. |
fuzz |
color tolerance between 0 and 100.
Its length must be 1 or the same as |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.