Posted: Thu Oct 16
Due: Wednesday 10/22 10:00am
- 4th Period: https://classroom.github.com/a/0HmO4GZr
- 5th Period: https://classroom.github.com/a/EJq1gzk-
It’s time to add curves to the graphics engine. Everything will work as before, we will have three more shapes to draw.
- 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 *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.
- For help creating your own image, you might want to use the following graphs:
- 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. One initial suggestion is to have a
cleantarget that gets rid of unwanted temporary compiler/interpreter byproducts. In addition, you must have the following targets:- The default target should run (and appropriately compile etc.) the test script that I have provided.
custom: This target should run your program like the default target, but should use your custom image script instead.
- 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. One initial suggestion is to have a