Add fills to lines

add_fills(
  input,
  colors = "black",
  transparency = NA,
  rule = c("evenodd", "winding"),
  openfile = TRUE,
  output = input
)

Arguments

input

File name of .svg file to input

colors

Vector of background color

transparency

Transparency of colors. Ranges from 0 to 1. Default is NA (i.e., leave the colors as specified in the colors argument).

rule

Character value specifying the path fill mode: either "evenodd" or "winding". Defaults to "evenodd"

openfile

Open file in default program for .svg format. Defaults to FALSE.

output

File name of .svg file to output. Default is to overwrite the input file. #' @return output name

Examples

.old_wd <- setwd(tempdir()) library(spiro) spiro( fixed_radius = 3, cycling_radius = 1, file = "add_fills.svg" ) %>% add_fills(colors = "black") setwd(.old_wd)