Settings

Theme

Show HN: De Jong Attractors

michaelfogleman.com

1 points by fogleman 10 months ago · 1 comment · 1 min read

Reader

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

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection