So the degenerate part is taking a fixed sample of points no matter how big the spiral gets. The effect is like you're sampling at larger and larger scales, so you get to sample the structure of the spiral at larger and larger scales, and the diversity of patterns you see, is the visual representation of the spiral at these larger and larger scales through the lens of the sample you are taking. That's my explanation anyway.
Reminds me a bit about a recent blogpost about KSP: https://www.kerbalspaceprogram.com/dev-diaries/6509/. Basically they draw circles as a fixed amount of points as well, but if you zoom enough the circle becomes straight lines. With some work, they're drawing more points on the visible part of the circle as you zoom in.
In 3D rendering, this is what subdivision surfaces are about. As the camera moves closer, produce more triangles to keep the model appearing smooth. Cool stuff.
in the spirit of hypnotic -- a while ago I was searching SO on how to animate canvas elements using js. I fell down a bit of a rabbit hole and a few hours later ended up with this:
No aliasing is required. I was first introduced to moire patterns by a book with a bunch of line patterns, and a sheet of transparent plastic with other line patterns printed on it. Put the latter over the former, move it around, watch the weird effects.
Moire patterns are related to aliasing: the gap between the lines on the overlay is your sample frequency, the lines on the underlying page is your signal frequency, with the angle of the two sheets modifying the relative frequency and the offset of the sheets changing the phase.
I've seen the film. Interesting atmosphere, digital effects are somewhat dated (think 90ies video), practical effect are fine. I am not a manga reader, so it may have flown over my head.
Wow, I wasn't expecting to find a reference to a horror manga in the comments of my post about (what I believed to be) innocuous spirals! That's amazing, although I'm too squeamish to try and read it!
He makes interesting horror stories. I don't usually like horror but I have read some of his work. Another one, by him, that has stuck with me is a bonus story of Gyo called The Enigma of Amigara Fault.
ps: how funny, your description reminded me of a nightmarish manga about a strange hole in a mountain, and .. it was by junji ito https://www.scaryforkids.com/enigma-of-amigara-fault/ (I forgot who the author was until right now)
>In mathematics, a spiral is a curve which emanates from a point, moving farther away as it revolves around the point.
I'm surprised by that definition and always thought of a spiral as a curve with a monotonic signed-curvature function.
So, for example, the Euler/Cornu Spiral has a point of inflection where the curvature changes sign at the point of inflection, but the curvature increases continuously all the way from -infinity to + infinity as you travel along the length of the curve. So under my definition the whole Euler Spiral would count as a spiral, even though it stops revolving/emanating from a point just under 1/4 turn after the inflection point.
If you split a curve into segments at its curvature minimum and maximum points (vertices in the differential geometry sense [0]) then each segment has monotonic curvature and I'd define those as spiral segments. Vertices and monotonic curvature segments are preserved under inversion, which is mathematically useful.
In contrast, inflection points with zero curvature are not preserved under inversion. So the Euler spiral can be transformed by a suitable inversion to a curve like the one defined by Wikipedia, that is a curve emanating out from, for example, the origin.
Edit: just spotted this in the Wikipedia article on spirals 1]:
> Spirals which do not fit into this scheme of the first 5 examples:
> A Cornu spiral has two asymptotic points.
> The spiral of Theodorus is a polygon.
> The Fibonacci Spiral consists of a sequence of circle arcs.
> The involute of a circle looks like an Archimedean, but is not:
The Cornu spiral I've covered.
The spiral of Theodorus doesn't have a monotonic curvature function - it's a polygon approximation of the Archimedes Spiral, which does.
The Fibonacci Spiral's curvature function is a monotonic step-function.
The involute of a circle is a log-aesthetic curve, all of which have monotonic curvature functions. (The logarithmic spiral and the Euler spiral are also log-aesthetic curves.)
Another curve to add to this (very nice) collection is the parallel curve of an Euler spiral. It's mathematically very similar to a circle involute, but with some nice and interesting properties of its own.
Thanks a lot! I agree that there is great educational potential in this format. I've definitely learned some cool things myself from the posts at https://explorabl.es/
I found this very interesting too, and it actually has a great explanation! Maybe I should have even explored this side a bit deeper in the post itself.
Let's say the spiral has rotated 6000 degrees, and I'm approximating it with 100 points (one point every 60 degrees) and line segments. Well, a hexagon is nothing other than 6 points chosen 60 degrees apart from each other at the same distance from a central point, connected with straight lines. The same thing holds for a square at, e.g. 9000 degrees.
After watching the animated spiral at top of the page for maybe 45 seconds, I scrolled to read the text -- and experienced an interesting aftereffect: alternate lines of text seemed to be moving in opposite directions. Trippy!
It's a great JavaScript library for creative coding called p5.js. Here is the code for one of the degenerate spirals in their web editor, which you can play around with: https://editor.p5js.org/dogatekin/sketches/utJunQyLi