“Everybody should learn to program a computer, because it teaches you how to think.” — Steve Jobs I’ve shown many attractor images I have generated over the past few weeks, but how have I been drawing them? I have been writing code to do so, but stopped including it in the posts because it was getting long and complex. I promised that, someday, I would share the code. Today is that day!
Ash nazg durbatulûk, ash nazg gimbatul, ash nazg thrakatulûk agh burzum-ishi krimpatul. One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them. — J. R. R. Tolkien’s The Lord of the Rings (1954–55) I’ve been going on and on about de Jong attractors lately , but that is only one kind of attractor. There are many others! This image is a Svensson attractor. It uses a set of equations very similar to what the de Jong attractor uses, and also requires four constants which define the shape of the result. Because of the way it handles sine and cosine, circular results are far more common than with the de Jong equations.