Spring

by gringer - uploaded on March 26, 2015, 4:27 pm

Quick spring created using R and the "pattern along path" generator in Inkscape. Here is the R code to generate the initial curve:

```

t <- seq(0,2*pi,length.out=1000);

svg("spring.svg");

plot(sin(t*10),t + cos(t*10), type = "l");

graphics.off();

```

Lines in the spring are due to difficulties in getting the join points set up properly. These could probably be fixed up with grey blocks over the lines.

Tags
R illustration mathematical spring
Safe for Work?
Yes

Comments

2 Comments. Please login to comment or add your own remix.