> 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

![](/files/-Lh984WbOmUR650sS9iE)

```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);
```
