# Create Brachistochrone Comparison Animation

**URL:** https://discourse.julialang.org/t/create-brachistochrone-comparison-animation/97562
**Category:** General Usage
**Tags:** question
**Created:** [April 17, 2023, 5:45am UTC](https://discourse.julialang.org/t/create-brachistochrone-comparison-animation/97562 "2023-04-17T05:45:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Freya\_the\_Goddess](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/freya_the_goddess/32/36835_2.png) [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)
#### Post date: [April 17, 2023, 5:45am UTC](https://discourse.julialang.org/t/create-brachistochrone-comparison-animation/97562/1 "2023-04-17T05:45:52Z")

</div>

Hi all,

I want to know how to animate a moving scatter plot / circle form three different lines:

1. Cycloid arc
2. Straight line
3. Steep curve

we can plot three different lines. Then how to move the circles from point A to point B?

like this:

[![](https://global.discourse-cdn.com/julialang/original/3X/a/4/a4850e8cd6dd783d5dca4e9b0c515d5b2999ab50.jpeg "Cycloid — The Brachistochrone Curve [4K60]") ](https://www.youtube.com/watch?v=-H7CzIGcQk4)

![Capture d’écran_2023-04-17_12-41-22](https://global.discourse-cdn.com/julialang/original/3X/2/6/26da415b8dcc2c07faf16f71b09d4ec660529a33.png)

---

<div class="post-metadata">

### Author: ![zdenek\_hurak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zdenek_hurak/32/53118_2.png) [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)
#### Post date: [April 17, 2023, 7:20am UTC](https://discourse.julialang.org/t/create-brachistochrone-comparison-animation/97562/2 "2023-04-17T07:20:20Z")

</div>

One possibility for animation and visualizations in Julia is [Home · Javis.jl](https://juliaanimators.github.io/Javis.jl/stable/).

By the way, I think it is completely irrelevant in the question whether motion along straight lines or cycloidal arcs is to be animated. My humble advice is to keep only the essence of the question next time. Even the title is now misleading a bit – even people who are in the best position to answer may not read the post because they are not familiar with calculus of variations. And yet they do not even have to be in order to give advice with animations in Julia.
