So for my Christmas break project I recreated a program in javascript and html that I first invented back in college. I was a beginning pascal TA and between helping students I came up with this Brownian motion/fractal landscape generator. The recursive algorithm takes a square, breaks it into four smaller squares and calls itself for each new square with diminishing levels of variation for each deeper layer of recursion. It took me a day to get the palette somewhat ok, then half a day to get the recursion ok. Next I’ll wrap a website around it allowing the users to tweak some of the parameters – and hopefully save the landscapes off as png files or something. Math is pretty cool.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment