For this recitation I decided to create a randomly-colored bee! I believe bugs have a lot of small body parts that would be nice to experiment with from movement perspective!
My bee has moving wings, upper body legs, eyes and antennas! The wings, legs and eyes have a harmonized movement, while the eyes have their own thing going on!
The colors are complementary by contrast!
- What is the benefit of your class not relying on any code outside of its own definition?
It is the first time I have utilized only class when writing a program, so it was quite interesting. I believe it is very cool because later it would be possible to multiply these objects described in class very fast. Like this:
- What make it challenging to write code that has to harmonize with the code other people have written?
I think it wasn’t really challenging for me from that perspective as I believe any kind of dynamic object would to some extent harmonize with another kind of that object! I believe it is going to be very interesting to look at the final results!
- Describe the terms modularity and reusability using the example of your dancer class.
Well, here, as I said, the use of class makes it possible to generate multiple objects in different places quite easily, which adds up to the reusability. Plus, the methods here provide modularity as they allow to have different results when called/not called.
link to the p5: https://editor.p5js.org/zhuanya28/sketches/ABLWqfTOM