The Mandelbrot Set Drawn in a Microsoft Excel 2010 SpreadsheetI have a lot of extra time on my hands
The Mandelbrot Set Drawn in a Microsoft Excel 2010 SpreadsheetI have a lot of extra time on my hands as an IT intern, so I decided to learn Visual Basic for Applications (VBA). After making a couple of small applications using VBA for Excel, I decided to attempt something more entertaining: the Mandelbrot set! For those unfamiliar with the set, I really recommend checking it out!The Mindful Programmer (Joni Salonin) wrote an awesome blog post about creating a Mandelbrot set drawer in a C-family language. Using it as a guide, I drew a set in black and white, then grey-scale, then eventually color. Instead of having the program draw to individual pixels, I made the cells of the spreadsheet super tiny squares, zoomed out to 10%, then had the program set the fill color of each individual cell in accordance with the Mandelbrot set equation. As you can probably imagine, it takes quite a while to render, especially when the number of iterations is set high. For these sets, I set the number of iterations to 30 — it takes around 3-6 minutes to render. Bonus pic - Mandelbrot set in grey-scale: Explanation of pictures at the top: The top picture is a full-screen snapshot of my full-color Mandelbrot set. I really wanted it to look like the Wikipedia page’s set so I had to be careful with my color/gradient choices! The bottom two pictures show a spreadsheet selection of 21 by 22 cells first at 10% zoom, and then at 214% zoom. Imgur album. Code (I apologize for its messiness). -- source link
#mathematics#mandelbrot set#fractal#geometry