Exercise Sheet 7: Locomotive

Draw an animated locomotive from lines and circles.

  • trigonometry
  • methods
  • for loops
  • animated, time-dependent graphics (videos)

Based on

  • exercise Sheet 3

Drawing commands with parameters. Parameters determine where the locomotive is to be drawn and the angles at which the front and rear wheels are positioned.

 Locomotive in motion The locomotive's parameter values are determined time-dependently.