We're talking baseball
repo link

https://github.com/gfx-dw/PD-GH_USERNAME-04-curves

git@github.com:gfx-dw/PD-GH_USERNAME

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, r
  • hermite: 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, ry0 and rx1, ry1 are 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. 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.