Browse Source

docs(chaikin) correct raid subject grammar

1127-print-range-subject
davhojt 2 years ago committed by Dav Hojt
parent
commit
be51c5e8b6
  1. 30
      subjects/chaikin/README.md

30
subjects/chaikin/README.md

@ -2,35 +2,31 @@
### Instructions
Implement the [Chaikin's](http://graphics.cs.ucdavis.edu/education/CAGDNotes/Chaikins-Algorithm/Chaikins-Algorithm.html) algorithm step by step in an animation.
Implement [Chaikin's](http://graphics.cs.ucdavis.edu/education/CAGDNotes/Chaikins-Algorithm/Chaikins-Algorithm.html) algorithm as a step by step animation.
The objective is to create a canvas where the user will be able to draw 1 or more points on it, and then the screen will play an animation of each step that is taken to obtain the final result of a drawn curve. The animation must play for 7 steps and then it must restart.
It is mandatory to use the `Chaikin's` algorithm.
You will create a canvas to enable the user to draw 1 or more points. The screen will then animate each step that is taken to obtain the final result of a drawn curve. The animation must play for 7 steps and then it must restart.
You can see how the application should work [here](https://youtu.be/PbB2eKnA2QI).
- Functionality:
> Usage of Chaikin's algorithm is mandatory.
- The canvas should receive input from the mouse:
- The user of the program should be able to use the left button to select the control point for the `Chaikin's` algorithm.
- The selected points must be visible in the canvas, so you will have to draw a small circle surrounding the selected points.
#### Functionality
- After pressing `Enter` the program should start the animation of the steps until reaching the 7th step of the `Chaikin's` algorithm. After the 7th step the program must restart.
- The canvas must receive input from the mouse. The user must be able to use the left button to place control points for Chaikin's algorithm.
- The selected points must be visible on the canvas. You will need to draw a **small** circle surrounding each point.
- If the canvas only has only one control point, the program must only present that point and do no change at all.
- After pressing `Enter`, the program should start the animation. It should cycle through the steps until reaching the 7th step of `Chaikin's` algorithm. The program should then restart.
- If the canvas has only two control points, the program must draw a straight line.
- If the canvas only has only one control point, the program must only present that point and not cycle through the steps.
- Pressing `Escape` should quit the window.
- If the canvas has only two control points, the program must draw a straight line.
### Note
- Pressing `Escape` should quit the window.
You are free to use any library to create and handle windows, rendering, keyboard and mouse events.
> You are free to use any library to create and handle windows, rendering, keyboard and mouse events.
### Bonus
- Add the ability to clear the screen and add new control points.
- Make it possible to clear the screen, so that the user can select new control points.
- Make it possible to drag the control points in real time.

Loading…
Cancel
Save