Tesla's Vortex (Mathologer Coding Competition)

AI Thread Summary
Mathologer's recent video on "Tesla's Vortex" explores a method for generating intricate patterns through repeated multiplication and modulus, resulting in repeating sequences plotted around a circle. This technique creates various shapes, including cardioids, based on different multiplier and modulus parameters. A coding challenge was proposed for viewers to create a web app for generating these patterns. One participant successfully developed an app and is seeking suggestions for enhancements, particularly in coloring and rendering techniques. They experimented with edge coloring by length but noted discrepancies with the video’s visuals, suspecting that the original images may not have used this method. Additionally, they explored post-processing techniques like mean curvature smoothing and sharpening, inquiring about the mathematical implications of these effects. The discussion encourages sharing generated patterns and coding insights, with mentions of resources like p5.js for JavaScript implementations and Rosettacode.org for potential code contributions. The participant plans to share their code after refining it.
Jarvis323
Messages
1,247
Reaction score
988
Mathologer made a cool video recently about "Tesla's Vortex", or rather a cool method of generating patterns using repeated multiplication and modulus to generate repeating sequences, and then plotting those sequences around a circle. This creates cardiods and other related patterns, a different one for each multiplier and modulus parameter. They asked viewers to make a web app for generating these patterns as a coding challenge.



Anyway, so I made one and made a bunch of patterns. So I was wondering if anyone has ideas for how to make improvements or add features for different coloring or rendering. I tried coloring edges by length, but it doesn't look like in the video, and I think the images in the video are not actually coloring edges by length? Unless maybe the edges were also rendered in sorted order by length so that you cannot see the long edges crossing crossing the diameter (only in the center).

t2m8948.png


t943m65933.png


I was also messing around with post processing apply mean curvature smoothing and then sharpening, which has a cool effect. Anyone with more advanced mathematical knowledge know if there is any interesting mathematical interpretation of those results?

https://en.wikipedia.org/wiki/Mean_curvature

t652 m105588.png


t652m105588.png


t652m3917.png


Anyone interested in the coding challenge and want some pointers feel free to ask, and also post any cool patterns you generate or comments on the mathematics.
 
  • Like
Likes jedishrfu and Drakkith
Technology news on Phys.org
Nice work! You could port your program to the Processing environment too. There's a javascript variant of Processing called p5js.org .

Also check Rosettacode.org to see if there are any solutions on site, if not you could donate your code to the cause.
 
jedishrfu said:
Nice work! You could port your program to the Processing environment too. There's a javascript variant of Processing called p5js.org .

Also check Rosettacode.org to see if there are any solutions on site, if not you could donate your code to the cause.
Thanks. It's currently implemented in Javascript with WebGL. I might share the code if I get time to clean it up a little.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Back
Top