Sunday, 24 November 2013

Project 2 .fx

After my frustration with the other project, I moved on to the one involving colours.

I didn't even spend an hour on it and it seems close to completion.

When I first looked at the avg definition, it looked way too easy to just replace the 7 with an 8, and I eventually figured out how to define it to make an average of the colours after watching a racket video on working with colours. Also, I had created a document that listed a bunch of functions we used in class so that's how I figured out how to ensure that the numbers matched even when it was not exact.

Then, making the other check-expects for true/false avcols was not too difficult. It was just a matter of following the conditions.

Making a toggle definition was also just a matter of recalling past functions to incorporate into the new functions.

Eventually all 16 tests were passed, giving me a glow of satisfaction after having so many errors with the other one.

However, for some reason when I run the program it just states that all of the conditions were false... And I don't think that's supposed to happen... But I don't know how to fix it so I suppose I'll have to ask Danny or a TA.

—V

No comments:

Post a Comment