Here is an ugly but working example.
Edit- https://www.espruino.com/ide/emulator.html?codeurl=https://raw.githubusercontent.com/abhigkar/banglejs-pacman-clock/master/image-clock-face.js&upload
Sun 2020.01.19
Nicely done @Abhinav and a code block for others to emulate too! I have a feeling your technique will get used a lot!!
@Robin started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Here is an ugly but working example.
Edit-
https://www.espruino.com/ide/emulator.html?codeurl=https://raw.githubusercontent.com/abhigkar/banglejs-pacman-clock/master/image-clock-face.js&upload