Coding Challenge #74: Clock with p5.js

Subscribers:
1,750,000
Published on ● Video Link: https://www.youtube.com/watch?v=E4RyStef-gY



Duration: 20:39
489,208 views
9,883


In this coding challenge, I attempt to program a clock in HTML5 canvas with the p5.js library. Code: https://thecodingtrain.com/challenges/74-clock

πŸ•ΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/2lvHFWPbW

πŸŽ₯ Next video: https://youtu.be/RPz75gcHj18?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
πŸ““ Golan Levin's notes on MAEDA’S 12 O’CLOCKS: http://cmuems.com/2016/60212/lectures/lecture-09-09b-clocks/maedas-clocks/
πŸ• Alca's Clock Collection: https://codepen.io/collection/DqRNLQ/
πŸ“„ ICM-2017 Syllabus: https://github.com/ITPNYU/ICM-2017

Videos:
πŸŽ₯ Livestream Archive: https://youtu.be/BcbS0MR3vxQ

Related Coding Challenges:
πŸš‚ #66 JavaScript Countdown Timer: https://youtu.be/MLtAMg9_Svw

Timestamps:
0:00 Introducing today's topic
0:44 Inspiration
2:15 How do we get the time information?
3:15 Add a digital clock
4:55 Use arcs to visualize the time
7:05 Add angleMode()
9:17 Map the end of the arc to the seconds, minutes, and hour
12:07 Translate to the center of canvas and rotate by -90 degrees
15:15 Add hour, minutes, and second hands
18:57 Concluson and creative possibilities

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

πŸš‚ Website: http://thecodingtrain.com/
πŸ‘Ύ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: https://github.com/CodingTrain
πŸ’¬ Discord: https://discord.gg/hPuGy2g
πŸ’– Membership: http://youtube.com/thecodingtrain/join
πŸ›’ Store: https://standard.tv/codingtrain
πŸ–‹οΈ Twitter: https://twitter.com/thecodingtrain
πŸ“Έ Instagram: https://www.instagram.com/the.coding.train/

πŸŽ₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— p5.js: https://p5js.org
πŸ”— p5.js Web Editor: https://editor.p5js.org/
πŸ”— Processing: https://processing.org

πŸ“„ Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#beginner #clocks #generativeart #javascript #p5js







Tags:
JavaScript (Programming Language)
live
programming
daniel shiffman
creative coding
coding challenge
tutorial
coding
challenges
coding train
the coding train
live stream
itp nyu
translate
rotate
p5.js transformations
javascript clocks
golan levin
john maeda
p5.js clocks
12 o'clocks
interactivity & computation
challenge
javascript
p5.js
p5.js tutorial
programming challenge