Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: De Jong Attractors (michaelfogleman.com)
1 point by fogleman 5 months ago | hide | past | favorite
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




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: