Summary.
Draw a clock using the canvas API from node-canvas.
Description.A simple method consists in mapping hours, minutes and seconds into angles, and then map polar coordinates to cartesian coordinates, considering zero degrees at three o'clock.
Documentation: - Ubuntu: - sudo apt install jsdoc-toolkit - sudo apt install npm - MacOS: - sudo port install npm5 (or npm6) - sudo npm install -g jsdoc - jsdoc -d doc-clock clock.js Server: - npm init - npm install canvas - node clock.js &
- Since:
- 14/11/2020
- Source:
- See: