Volcano Building Fun

Volcano Building Fun
By: Tatiana Gospe
Topic and Methods
• For loop, for nParticles
• While loop with dh=height1(x)-height1(x-w)
• Increase w, increase dh as code iterates
through particles
• Two for loops within while loop
• Rand() in while loop, particle moves left or
right if dh>1 or (dh=1 & r>.1) otherwise, the
particle sticks.
• Control layers with mod(particles, 1000)==0
• Matrix for color map