예제 시계

시계

현재 시각은 second(), minute(), 그리고 hour() 함수를 사용하여 읽을 수 있습니다. 이 예제는 map() 함수를 사용하여 시계 바늘의 각도를 계산합니다. 그런 다음 좌표계 변환을 사용하여 그 위치를 설정합니다.

Creative Commons BY-NC-SA license badge

시계: 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!