Description Usage Arguments Value Examples
Define a pantograph
1 2 | define_pantograph(orbit1, orbit2, offset1 = 0, offset2 = 0,
n_segments = 3, segment_length = 1)
|
orbit1 |
The first orbit it is attached to |
orbit2 |
The second orbit it is attached to |
offset1 |
The distance of the attachment from the origin of orbit1 |
offset2 |
The distance of the attachment from the origin of orbit2 |
n_segments |
The number of segments in the pantograph |
segment_length |
The length of each segment |
pantograph
1 2 3 4 | orbit1 <- define_orbit(c(0, 25), 1000)
orbit2 <- define_orbit(c(0, 8), 100, parent_orbit = orbit1)
orbit3 <- define_orbit(c(0, 1), 20, parent_orbit = orbit2)
pan <- define_pantograph(orbit3, orbit3, c(0, 1), c(0, 5), 3, 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.