pipeline | R Documentation |
Pipeline to get pixel art
pipeline(
url,
resize1 = 100,
ncolors = 7,
resize2 = 20,
color_bg = "white",
saturation = 100,
degrees = 0,
left = 0,
top = 0,
right = 0,
bottom = 0
)
url |
URL of image. |
resize1 |
Initial resize width for processing. |
ncolors |
Number of different colors. |
resize2 |
Final resize widthg. |
color_bg |
Color replacing missing values (e.g. "#ffffff"). |
saturation |
modulation of saturation as percentage of the current value (100 for no change) |
degrees |
value between 0 and 360 for how many degrees to rotate |
left |
Number of pixels to crop to the left |
top |
Number of pixels to crop to the top |
right |
Number of pixels to crop to the right |
bottom |
Number of pixels to crop to the bottom |
A ggplot object.
pipeline(
url = "https://goo.gl/nRQi5n",
resize1 = 100,
resize2 = 22,
ncolors = 6,
color_bg = "#ffffff"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.