La hora actual se puede obtener con las funciones second(), minute() y hour(). Este ejemplo utiliza map() para calcular el ángulo de las manecillas. Luego utiliza transformaciones para establecer su posición.
Reloj: Revised by Caleb Foss. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.
You can find the code history of these examples here: 2023 code, pre-2023 code. You can suggest improvements by contributing to the current website!