“Chaos Game” Sierpinski Fractal Generation

Sierpinski triangle fractal

This is a Sierpinski triangle fractal generated using the chaos game method, in which a point inside a triangle is copied halfway to any random vertex of the triangle. That is to say, we pick a point inside an initial triangle, then randomly select a corner in that triangle. We then take the x and y coordinates of that corner/vertex and find the difference between that and the coordinates of the starting point. Finally, we divide those differences by 2 and use those as the coordinates for the next point, and repeat. If you want, you can run the program I wrote to generate the fractal, or look at the code (in JavaScript) I used.

Mandelbrot Program – Added Shading

I added basic shading to my Mandelbrot fractal program. If you haven’t seen that, here’s a link. Anyway, for each pixel it takes the number of iterations of z=z2+c in order for the coordinates to escape the Mandelbrot set, and bases the color off of that. Picture: Right now, however, it can only use shades … Read moreMandelbrot Program – Added Shading

Mandelbrot Set Generation Program

This is a program I wrote that generates the Mandelbrot fractal (here’s a Wikipedia article about it), written in JavaScript, using the HTML5 canvas. For each pixel, it evaluates a recursive formula, z=z2+c, based on the coordinates of that pixel. If, after the z value is fed back into the formula a certain number of … Read moreMandelbrot Set Generation Program