The task:
Animate the rotation of two connected mechanical gears on a canvas.
It seems that it just sounds, but due to poor knowledge of the language, I can’t figure out how to approach the task and what to use. Can you tell me how to build a gear without using additional libraries?