Skip to content

Show HN: De Jong Attractors

michaelfogleman.com
1 pointfoglemandiscuss
On HN

Yesterday's post [1] about the "Kaos" screensaver led me down a rabbit hole and I ended up implementing this demo of Peter de Jong's attractors:

    x' = sin(a * y) - cos(b * x)
    y' = sin(c * x) - cos(d * y)
I added a little flair by blurring the point based on its distance from the previous point (how "fast" the attractor is moving).

I added a bunch of controls with a lilgui control panel. Try it out! Works fine on mobile but easiest to play with the controls on desktop.

[1]: https://news.ycombinator.com/item?id=42963346

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.