Date: June 27, 2025
📘 Challenge: Bucktooth Bunny (Lesson 4: Variables)
What I Learned:
Today’s challenge introduced variables in p5.js. Instead of hardcoding values directly into my shapes (like eye size or tooth length), I learned how to define those values once and reuse them. That way, I can adjust an entire feature (like both eyes) just by changing a single number.
This gave me my first real taste of why variables matter in programming — they make your code cleaner, more flexible, and easier to tweak. I started with let eyeSize = 10 and let toothLength = 20, and used those inside the ellipse() and rect() functions.
What Went Well:
- I successfully drew Bucky’s ears, face, eyes, mouth, and buck teeth.
- I used my own commenting style to walk through each section logically.
- I got to see how a small change in one variable can impact multiple shapes.
What Went Wrong:
- I accidentally left out clear step markers the first time I wrote the code. I thought setup() was Step 1, but realized that inside it, I should have broken down the drawing into meaningful visual steps.
- At one point I accidentally removed my personal comments while revising — but I’ve made a note not to do that again. My comments help show that I’m thinking through each line of code.
- The face looked a little flat until I spaced things better and stepped back to visualize the spacing more clearly.
What I Can Do Better:
- Be more intentional with spacing and proportions — for example, better eye alignment and experimenting with ear size could have made it look even more cartoonish or expressive.
- Keep my step numbers consistent and start from inside setup() so that they reflect the visual building process, not just the technical structure.