Giter VIP home page Giter VIP logo

apolloniangasket's Introduction

Apollonian Gasket

Try the online version here or download the desktop binaries from the releases section here

Intro

In mathematics, an Apollonian gasket or Apollonian net is a fractal generated by starting with a triple of circles, each tangent to the other two, and successively filling in more circles, each tangent to another three. It is named after Greek mathematician Apollonius of Perga (Ἀπολλώνιος ὁ Περγαῖος).

The algorithm uses René Descartes' formula aka Descartes theorem to calculate the curvatures (bends) of the generated circles along with complex Descartes theorem to calculate the position of the newly created circles.

Usage

  • Press Space or Left Mouse Click to generate new gaskets!
  • Press F2 to show/hide Frames Per Second

Screenshot

Screenshot from 2024-06-05 20-51-33

A poem

Apollonian circles experienced perhaps their most glorious rediscovery in 1936, when the Nobel laureate (in chemistry, not mathematics) Frederick Soddy became mesmerized by their charm. He published in Nature a poetic version of Descartes’ theorem, which he called “The Kiss Precise”:

Four circles to the kissing come
The smaller are the benter.
The bend is just the inverse of
The distance from the center.
Though their intrigue left Euclid dumb,
There’s now no need for rule of thumb.
Since zero bend’s a dead straight line,
And concave bends have minus sign,
The sum of the squares of all four bends
Is half the square of their sum.

Yet more is true: if all four discs
Are sited in the complex plane,
Then centers over radii
Obey the self-same rule again.

Helpful resources

Helpful resources on Apollonian Gasket fractals and the Descartes theorem

apolloniangasket's People

Contributors

thanosfisherman avatar lyze237 avatar

Stargazers

Laura Kuttnig avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.