Concept
For this assignment, I decided to create a simple artwork inspired by the portal in the movie Coraline. I’ve always loved how layered and colorful it looks in the film, so I used it as inspiration for my own piece.
Here’s a picture of the portal from Coraline:
Code I’m Proud Of
It took a lot of trial and error to get the loop working properly. Once I figured out how to write the condition correctly, the rings appeared just how I wanted them. I also added randomized colors of blue, purple, and pink to the rings to make them feel closer to the portal from Coraline. I also adjusted the frame rate to create more of a portal effect.
// circles size increase by an increment as it loops for (let i = 0; i < ring1; i += 1) { let s = minsize + i * increment; ellipse(centerX, centerY, s, s); // random colors from the list for each ring stroke(random(colors)); }
Here’s the work of art I created:
Reflections and Improvements
Overall, I’m happy with how it turned out. I wasn’t trying to recreate the portal exactly, but instead capture the beauty of its colors and layers. However, I noticed it took me a really long time to figure everything out, and at one point the program kept crashing. I’d like to improve in understanding loops in general to be more efficient in future projects. I’d also love to add animation to this artwork, like making the rings spiral and swirl so it feels more like an actual magical portal.