Box - 03-26-01 - Students Choice
Workbook 3 Student’s Choice submissions.
Student: Yulong Wu (GitHub: seealake)
I designed a program that animates “The Tortoise and the Hare” racing around an oval track made of two cubic Bezier segments. We use curved shapes include the track, clouds, rabbit, turtle shell, and a waving flag, all drawn with bezierCurveTo. In the race, the rabbit and turtle follow curved paths along the Bezier path, with the rabbit running very fast but periodically sleeping, while the turtle moves at a constant speed.
Student: Pavan Thodima (GitHub: pthodima)
The best use I could think of for curves was implementing a rope simulation. I tried implementing one just using hook’s law, but that seemed very unstable, some googling led me to Verlet’s Rope.
You should be able to drag the rope around and move it. It works more like an elastic band and is fun to play with! The points are interpolated with curves instead of straight lines.
Student: Alex PROUT (GitHub: Alex-Prout-10)
I used a catmull rom spline to pass between the players, and I used a Bezier curve to draw the goal and to draw a defenders back line.
Student: Benjamin Lewis (GitHub: bdlewis619)
Click anywhere on the canvas to place cheese. The snake will visit each piece in order. Watch it slither smoothly along Bezier curves using arc length parameterization!
Student: Don Lee (GitHub: Donkey0322)
This program shows curved shapes using parametric curves. Each DNA backbone follows a sinusoidal curve defined with cosine and sine functions, which creates the helical shape of the double helix. The curve is generated by sampling many points along the parametric function and connecting them with line segments to approximate a smooth curve.
Student: Matthew Desyak (GitHub: siganur)
Student: Haoyu Zhang (GitHub: milo417)
The jellyfish bell, tentacles, oral arms, seaweed, and fish bodies are all drawn with cubic Bézier curves. Two jellyfish follow separate cubic Bézier paths across the scene, and the bell pulses by deforming its control points over time.