Summary
Using Processing to go beyond the Word It medium to learn many functions of the programming language.
This month’s theme is Fly, so I decided to go semi-obvious and spell the word by filling the negative space using images of flies. It sort of reminds me of the Orkin poster where it collects pests with adhesive printed in the Orkin logo pattern on the poster.
Here is my entry on Word It.

Process
I first tried doing that by creating a new Fly brush in Photoshop, but since I’m learning the programming language Processing (P5), I thought that I could maybe figure a way to create the image with code.
Then I thought I could animate the flies’ movement, but then I would have to rotate the flies. And to make it have a bit more variation in texture, I’d have to apply a tint. And the flies needed to look different in size so it’s like different ages of flies are “trapped,” so I’d have to scale the images.
Ideas built upon one another to make a more realistic look, and even though it took longer than I expected, I learned a lot more and was happy with what I came up with. I could go ever further, but I think this is sufficient for a Word It project.
The interesting thing about this is that the positions of the flies are randomly generated, so there is no one same image each time you load it. The image on the Word It site is scaled up to their specifications, and it’s different than the screenshots on this page.
Screenshots
In Progress

Time-Lapse

What I Learned
- how to place text and include fonts
- how to place images
- rotate() – boy, this method almost drove me crazy with the way it works and made me work around the problem by using trigonometric functions that I haven’t touched since high school. Fun to solve equations, though. But then I learned how to use it with the translate() function and pushMatrix() and popMatrix().
- tint()
- scale()
- pushMatrix() and popMatrix() – interesting function concepts.
Date Created
2-4 July 2009