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.

Log in to add this clipart to a collection.

Tags
R illustration mathematical spring
Safe for Work?
Yes
Download SVG

Comments

Nice idea, posting a spring in spring time.

Check this if you like, how markers can represent a gradient along the wire: https://openclipart.org/detail/216464/coil-spring-2

It is also possible to incorporate the diffuse shader filter but very messy -would need to split the spring at its turns

Wow, cool. There is code in the description above that we need to find way to allow to render ok, #openclipart_issue

Log in to comment.