Contents

Clock Animation

Time is the entire series covering when processes, actions, or circumstances exist or take place. Units of time are denoted by hours, minutes, and seconds. With a clock we can measure when an event occurs. Most clocks in circulation today are either analog or digital. Analog clocks have three hands. The longest hand shows seconds, the short hand shows hours, and the remaining hand shows minutes. Look at the following image.

making a clock in GeoGebra
making a clock in GeoGebra

In this post, I will share a guide on how to draw and animate an analog clock using GeoGebra. With this animation, the hands of the drawn clock will move just like a real clock. How? Follow the guide below.

  1. Open GeoGebra.

  2. Select the Circle with Centre Through Point tool. Click Circle : centre & radius. In the Graphics View, create circles with radii 5, 4.8, 4, 3, and 0. Look at the following image.

    Circles in GeoGebra
    Circles in GeoGebra

  3. Next, click the Slider tool. Click on angle, fill in α, Min=0, Max=84600, increment=1. Click OK. Look at the following image.

    Slider in GeoGebra
    Slider in GeoGebra

  4. Click the Point tool. In the graphics view, click on the position of the second circle, just below the number 5, and at the center of the circle. Look at the following image.

    Point in GeoGebra
    Point in GeoGebra

  5. Click the Line tool. In the graphics view, click on points A and B. Look at the following image.

    Line in GeoGebra
    Line in GeoGebra

  6. In the Input bar, type: Sequence(Rotate(B, α⁰, A), α, 0, 360, 30). Press Enter. Look at the following image.

    Circles in GeoGebra
    Circles in GeoGebra

  7. Still in the Input bar, type: Rotate(h, -6α, A). Press Enter. Look at the following image.

    Circles in GeoGebra
    Circles in GeoGebra

  8. Next we will create the long hand that shows seconds. Select the Line tool, click vector. In the graphics view, click the line (from step 5) near the center of the circle and drag the line past the 3rd circle. Look at the following image.

    Vector in GeoGebra
    Vector in GeoGebra

  9. Right-click the newly formed line. Select and click Object Properties. Choose the desired color. Look at the following image.

    Color in GeoGebra
    Color in GeoGebra

  10. In the Input bar, type: Rotate(h, -α/10, A). Press Enter. Look at the following image.

    Vector in GeoGebra
    Vector in GeoGebra

  11. Next we will create the long hand that shows minutes. Select the Line tool, click vector. In the graphics view, click the line (from step 10) near the center of the circle and drag it past the 2nd circle. Look at the following image.

    Vector in GeoGebra
    Vector in GeoGebra

  12. In the Input bar, type: Rotate(h, -α/120, A). Press Enter. Look at the following image.

    Line in GeoGebra
    Line in GeoGebra

  13. Next we will make the short hand that shows hours. Select the Line tool, click vector. In the graphics view, click the line (from step 12) near the center of the circle and drag it toward the 2nd circle. Look at the following image.

    Vector in GeoGebra
    Vector in GeoGebra

  14. In the Input bar, type: Sequence(Rotate(B, α⁰, A), α, 0, 360, 6). Press Enter. Look at the following image.

    Clock in GeoGebra
    Clock in GeoGebra

  15. Select the slider tool, click Button. In Caption, type START and in the GeoGebra Script box type StartAnimation(α). Create a STOP button with StartAnimation(false) in the GeoGebra Script box. Finally, create a RESET button with StartAnimation(α=0).

  16. Next, tidy up the clock you have finished drawing. To make the look more appealing, apply colors to the second hand, minute hand, hour hand, the dots, and other elements. Hide the 2nd and 3rd circles. Create the numbers 1–12 and place them in their proper positions. You may also add images to make the clock more attractive.

Below is an example result of the guide to creating a clock animation in GeoGebra. Click START to begin, click STOP to pause, and click RESET to return the clock to its initial position.

This guide shows how to draw and animate an analog clock in GeoGebra. If you notice anything that should be corrected, or if you have suggestions or questions, please share them in the comments. I hope this tutorial is helpful.

Related Content