The following exercises are meant to test your skills and the knowledge you just earned in order to build on the work we just completed. Complete the following exercises on your own:
- Change the color of the tracking line from blue to red, or another color.
- Replace the straight line segments with a SplineCurve. Hint, you will need to track more than one previous position.
- Make the cube and/or audio follow the user along the tracked path. Hint—you can use another setInterval timer function to move the box along the path every 1.1 seconds (1100 ms).