Posted: Thu Oct 15
Due: Tuesday 10/20 10:00am
Add the following commands to the parser
circle: adds a circle to the edge matrix - takes 4 parameters:cx, cy, cz, rhermite: adds a hermite curve to the edge matrix - takes 8 parameters:x0, y0, x1, y1, rx0, ry0, rx1, ry1- The curve is between points
(x0, y0)and(x1, y1). rx0, ry0andrx1, ry1are the rates of change at each endpoint
- The curve is between points
bezier: adds a bezier curve to the edge matrix - takes 8 parameters:x0, y0, x1, y1, x2, y2, x3, y3- This curve is drawn between
(x0, y0)and(x3, y3). (x1, y1)and(x2, y2)are the influence points for the curve.
- This curve is drawn between
For help creating your own image, you might want to use the following graphs:
- Bezier: https://www.desmos.com/calculator/jydkmhkxac
- Hermite: https://www.desmos.com/calculator/o9owo98ca5
Makefile specifications:
- If you look at skill 1, you will see that a 4 involves having multiple targets that may not be directly related to building your project. Your makefile should have the following targets:
run(default target)- Compile/build/run the program and display the provided test image.
custom- Compile/build/run the program and display your custom image.
clean- Gets rid of unwanted temporary compiler/interpreter byproducts.
cleanall- Gets rid of everything except your source code. This includes removing all compiler/interpreter byproducts, images files and executable files.