ECE 270 Computer Methods Assignment #4 PDF

Summary

This document is an assignment describing the creation of computational graphics using structures like lines, circles, and rectangles. The assignment focuses on using underlying mathematics and user input to generate dynamic graphics. Requirements include functions, classes, and UML diagrams.

Full Transcript

ECE 270 Computer Methods in ECE Assignment #4 November 13, 2024 / Instructor: Paul Watta Warm-Up 1. Create the following structures: Line Circle Rectangle Fill Stroke Path 2. Create use...

ECE 270 Computer Methods in ECE Assignment #4 November 13, 2024 / Instructor: Paul Watta Warm-Up 1. Create the following structures: Line Circle Rectangle Fill Stroke Path 2. Create useful functions for each structure; for example void circle_print(char label[]) 3. Create draw functions for each geometric construct; for example: void drawCircle(Circle circle, Fill fill, Stroke stroke) Hint: So that you can call openframeworks functions inside your draw functions, attach your functions to the ofApp class as follows: (a) List the prototype for your function in ofApp.h under public: (here, just list your normal prototype, as shown above, and do not use the ofApp:: prefix) (b) Put the body of your function in ofApp.cpp with the following prefix in the first line: void ofApp::drawCircle(Circle circle, Fill fill, Stroke stroke) 4. Use your structures to create an interesting and unique computational and algorithmic graphic which contains: Some underlying mathematics (sequences, geomentry, etc.) Lots of numbers behind the scenes User input so that your program can create a family of graphics and not just one Optional: Dynamics, where the graphic evolves in time Give a name to your design! And do a nice write up where you explain the underlying math, give UML diagrams for your classes, and explain the user interaction. Note: A picture of a house or snowman where you hand-program all of the coordinates is not a computational graphic because all the computation was done by you and there’s not a lot of numbers involved! Lots of random circles or squares does not qualify because there is no underlying math. Assignment: Classes. 1. Refactor your code and create a class for each structure. 2. Create an even cooler computational graphic and give your piece and even cooler name. Examples. Some examples of computational graphics from previous semesters are shown below. Modern Chess Modern Checkers Major Tom to Ground Control Vibrant Population Displacement Eye Movement Jackson in Action Subway Connections Enlightenment Close Connect Keith Connect

Use Quizgecko on...
Browser
Browser