I first began by adding simple animation to one of my 1D examples from exercise one.
I added in the code: amplitude = 50. * math.sin(frameCount)
return amplitude * math.sin( x) - 1 * pow(x, 3) / cos(x * 30).
This cause the line to move like wave. From here I made the screen size bigger and added in a few extra lines and changed different parts of the code.
I then moved onto adding the same amplitude code to one of my 3D exercises. This however was quite boring to look at because all it did in the beginning was make the circle pattern spin.



No comments:
Post a Comment