- Butterflies and their followers
-
- Brief Description and Concept:
- It is a peaceful mysterious world with butterflies and their flowers.
- It incluses serveral features. The random color changes happen on the background, rorating leaves(wide ellipses), butterflies, and flowers. Leaves randomly rotate around one of the corners; flowers’ petals rotate their centers; and butterflies flying around their own flowers.
- Demo/Visual Documentation:
- 01: From the very beginning, it was just an attempt that letting circles rotate around the center of the sketch while growing bigger.
- 02: By changing the parameters, I found the beauty of this image and considered to draw a colorful flower like the Rose of Le Petit Prince.
- 03: The changing colors were quite lovely. Then I thought about making the circles irregular.
- 04: Later I thought the “flower” was too round and wanted to make it more like a flower. Surprise came here when I wrote down “noStroke()”. What a wonderful lotus! (A spiral may be seen indistinctly :D)
- 05: To see the spiral clearly, I made “noStroke()” a comment and then changed some parameters.
- 06: To be honest, I did think my project done at the lotus. But later, the idea of drawing butterflies with for loops came up.
- 07: After managing to graw a butterfly, the idea of changing background and drawing leaves came up.
- 08: Use for loops to let butterflies repeated regularly.
- 09: Add the flower into loops and make some superises on sizes and rotations~
- Brief Description and Concept:
- Reflection/Lessons Learned
From this project, functions like for loops, push()/pop(), rotate(), and translate() in p5.js were well utilized and practiced. The use of random maked some surperice in variable’s position, size, orientation and so on, as my for-loops iterate. Also, “loops in loop” is a quite interesting iteration to achieve a complex effect.
When considering differeces between drawing by hand from observation and programming the computer to draw, I think, for me, the former is just drawing an almost fixed picture while the latter needs more attempts to see what happens and adjust program. And programming the computer to draw usually generates many surprises and may lead to an unexpected crazy result, which inspires me a lot and help to come up with more ideas. Besides, both of the two drawing patterns have the process of iteration where I often adjust ideas and operations with inspirations stemming from the previous work .