add_pathdot: Add a moving circle to paths. Resulting file best viewed in...

Description Usage Arguments Value Examples

View source: R/spirograph.R

Description

Add a moving circle to paths. Resulting file best viewed in Google Chrome.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
add_pathdot(
  input,
  colors = "red",
  transparency = NA,
  radius = 3,
  duration = 10,
  delay = 0,
  path_id = "pathdot",
  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).

radius

Radius of dot

duration

Number seconds to complete animation

delay

Number of seconds to delay animation

path_id

Set id to path

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.

Value

output name

Examples

1
2
3
4
5
6
7
library(spiro)
spiro(
 fixed_radius = 3,
 cycling_radius = 1,
 file = "add_pathdot.svg"
 ) %>%
 add_pathdot(duration = 3)

wjschne/spiro documentation built on Dec. 16, 2020, 6:48 p.m.