Coding Challenge #2: Menger Sponge Fractal
In this 10 Minute Coding Challenge, I attempt to code the Menger Sponge (fractals) using Processing.
Send me your 10 minute coding challenge!
Contact: http://twitter.com/shiffman
Prequel where I sort some of this out: https://youtu.be/Md5LIDW0RyY?t=2738
Code for this challenge:
Processing: https://github.com/CodingTrain/Rainbow-Code/tree/master/CodingChallenges/CC_02_MengerSponge
p5.js: https://github.com/CodingTrain/Rainbow-Code/tree/master/CodingChallenges/CC_02_MengerSponge_p5.js
Processing: https://processing.org/
Wikipedia page of the Menger Sponge: https://en.wikipedia.org/wiki/Menger_sponge
Processing topics covered:
P3D: https://processing.org/tutorials/p3d/
ArrayList: https://processing.org/reference/ArrayList.html
To learn more about fractals using Processing: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6bXUJvjnMWGU5SmjhI-OXef
Help us caption & translate this video!
http://amara.org/v/Qbsl/
source