Making functions functional (-ish?)
Above is the pattern sketch reorganized into functions. I had wanted to make the scaling of the circles to increment at and offset order so that it would create a cascade effect. But I couldn't figure out how to do it with the cleaned up draw() with functions, so I reverted back to the spelled out organization of 2 separate loops (one for the circles, one for the crosses) so that I could create an offset incrementation to the shapes with-in their respective loops.
Even though I broke it down even more, I still couldn't figure it out how to do it in the bounce function code, but was advised to use trigonometry. I still don't quite understand it, but will probably need to get a little deeper into it during an office hour session. Comments are closed.
|
Blog posts and other documentation from NYU ITP classes
Categories |