> For the complete documentation index, see [llms.txt](https://gitbook.testingwaters.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.testingwaters.in/motion/animate-sphere.md).

# Animate Sphere

Periodic Run

![](https://1430428134-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Ld8QK19sjP1I9rhLouo%2F-Lh94v3lKEJa_l34brzH%2F-Lh984WbOmUR650sS9iE%2FamimateSphere.gif?alt=media\&token=459e8b71-c313-4667-bba8-cda0f2919be3)

```d
//Seconds to Parameter
msc = DSCore.DateTime.Components(dtm)["second"];
prm = msc>30?(60-msc)/30:msc/30;

//Curve
crv = NurbsCurve.ByPoints(Point.ByCoordinates
([0,10,-10,5],[0,10,5,-5],[0,10,5,0]));

//Sphere
sph = Sphere.ByCenterPointRadius(crv.PointAtParameter(prm),2);
```
