pipeline: Pipeline to get pixel art

Description Usage Arguments Value Examples

Description

Pipeline to get pixel art

Usage

1
2
3
pipeline(url, resize1 = 100, ncolors = 7, resize2 = 20,
  color_bg = "white", saturation = 100, degrees = 0, left = 0,
  top = 0, right = 0, bottom = 0)

Arguments

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

Value

A ggplot object.

Examples

1
2
3
4
5
6
7
pipeline(
  url = "https://goo.gl/nRQi5n", 
  resize1 = 100,
  resize2 = 22,
  ncolors = 6,
  color_bg = "#ffffff"
)

privefl/pixelart documentation built on May 29, 2019, 7:39 a.m.