Concept
For this assignment, I decided to create a random movie quote generator. I chose three of my favorite movies, The Muppets, Toy Story, and The Sound of Music, and picked two quotes from each movie. The project starts with a main screen that asks the user to click anywhere to begin. Every time the user clicks, one of the three movies is randomly selected along with one of its two quotes. I also wanted each movie to have its own screen theme rather than only changing the text, so that every generated quote feels connected to the movie it comes from.
Code Im Proud Of
I think the part I am most proud of is the river gradient for The Muppets screen. I wanted to challenge myself a little more instead of making the river one solid color, so I decided to try using paletteLerp(). I looked at the p5 reference for paletteLerp() and used it as a guide for creating the gradient. I also searched for a combination of river colors that would work well together and used those colors for the gradient. I liked being able to figure out how to put these different parts together to create the river I had in mind.
//river
noStroke();
//river gradient
for (let i =270; i < 400; i++) {
let amount = map(i, 270, 400, 0 , 1);
let riverColor = paletteLerp(riverColors, amount);
fill(riverColor);
rect(0, i, 400, 1);
}
How This Was Made
I created this project using p5. While working on it, I referred to different p5 references whenever I needed help remembering how to use certain functions or wanted to try something new. I also used Google Fonts, which is where I found the DM Mono font that I used throughout my project. For the visuals, I looked at images from each of the movies as references and used them as inspiration when creating my own versions in p5. I also used ChatGPT for help with the stars on the main screen. I originally searched online for how to create a star in p5, but most of the examples I found used more complicated code than what I was looking for. I asked ChatGPT how I could create a simple star in p5, and it suggested using the ✦ symbol as text. This made it much simpler for me to create the look I wanted for the starting screen.
References:
hex colors for river gradient 4 colors in p5 – for some reason, the colors that I got are not showing in this link
https://p5js.org/reference/p5/paletteLerp/
https://editor.p5js.org/cs105/sketches/iCmF693Ps
https://editor.p5js.org/hychu31/sketches/7HvwXXVTK
https://fonts.google.com/specimen/DM+Mono?preview.script=Latn
ChatGPT – for the stars
Photo References:
Reflection:
Overall, I am very happy with how this project turned out, and I am proud of myself for what I was able to create. I think I challenged myself more with this assignment and was able to create something that matched the idea I originally had in mind. However, one thing I would change for next time is giving myself more time to work on my assignment. I think this shows when comparing the three screens because The Muppets screen has a lot more detail than the Toy Story and The Sound of Music screens. If I had given myself more time, I think I could have added more detail to those two screens. For the next assignment, I want to give myself at least three to four days to work on it so that I can take my time and develop my ideas more fully.


