Hey everyone,
This week I have managed to finish Project 2. At first, I was struggling with the contrast code, because I couldn't seem to get the "z" button to properly produce what was expected. After several trial and error I finally solved the issue. I put the draw-imgpair code in the definition for keypress for "z" which should've been imgpair before ip. Now for fractals, everything seemed to be running smoothly, until I noticed the base of the triangles would not change when I pressed the "left" and "right" keys. I couldn't seem to find the problem myself. So I decided to go on Piazza for peer/instructor help. Thankfully, a student answered my question and asked if in my sierp definition, was the size of the triangle in the [else part, "5". And it was. However, it should've been (param-base rp) for it to properly work. So I corrected the code, and voila! It was successful.
This week is the final week of school!!! Although, I'm not even excited, because of exams. I feel very unprepared. Hope everything turns out well. Goodluck to everyone!
- JHL
Sounds like you finished P2 early. Nice!
ReplyDeleteYes, I did, in order to have more time to study. Thanks Prof Heap!
Delete