# Intersecting ellipses animation

**URL:** <https://discourse.processing.org/t/intersecting-ellipses-animation/42494>\
**Category:** Gallery\
**Created:** [July 25, 2023, 3:22pm UTC](https://discourse.processing.org/t/intersecting-ellipses-animation/42494 "2023-07-25T15:22:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [July 25, 2023, 3:22pm UTC](https://discourse.processing.org/t/intersecting-ellipses-animation/42494/1 "2023-07-25T15:22:11Z")

</div>

This sketch demonstrates a closed-form (algebraic) solution to finding the intersections of 2 arbitrary ellipses. Masochists and mathematicians can see some of the maths I developed [here](http://www.lagers.org.uk/gallery/articles/ellipse_intersection_maths.pdf).

The minimum number of ellipses is 3 but the upper limit is really dependent on the power of your machine, web-host and probably the browser. There are 3 locations where you can find this sketch

1. [My website](http://www.lagers.org.uk/gallery/gy-ellipses/gy-index.html) 400-500 intersections found per millisecond
2. [p5.js Sketch editor](https://editor.p5js.org/quark-js/sketches/T_EwBLx5w) 400-500 intersections found per millisecond
3. [OpenProcessing](https://openprocessing.org/sketch/1977364) 120-170 intersections found per millisecond

https://openprocessing.org/sketch/1977364/embed/

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [July 25, 2023, 7:45pm UTC](https://discourse.processing.org/t/intersecting-ellipses-animation/42494/2 "2023-07-25T19:45:53Z")

</div>

> [@quark](#):
>
> [OpenProcessing](https://openprocessing.org/sketch/1977364) 120-170 intersections found per millisecond

Access right-left panel & switch off “LOOP PROTECTION”. 😉

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [July 26, 2023, 8:09am UTC](https://discourse.processing.org/t/intersecting-ellipses-animation/42494/3 "2023-07-26T08:09:20Z")

</div>

> [@GoToLoop](#):
>
> Access right-left panel & switch off “LOOP PROTECTION”.

Thanks for pointing that out. I switched it off and got similar result to the others. 👍
