Coding Challenge #74: Clock with p5.js

Описание к видео Coding Challenge #74: Clock with p5.js

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

🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...

🎥 Next video:    • Coding Challenge #75: Wikipedia API  
🎥 All videos:    • Coding Challenges  

References:
📓 Golan Levin's notes on MAEDA’S 12 O’CLOCKS: http://cmuems.com/2016/60212/lectures...
🕐 Alca's Clock Collection: https://codepen.io/collection/DqRNLQ/
📄 ICM-2017 Syllabus: https://github.com/ITPNYU/ICM-2017

Videos:
🎥 Livestream Archive:    • Coding Train Live 100: Transformation...  

Related Coding Challenges:
🚂 #66 JavaScript Countdown Timer:    • Coding Challenge #66: JavaScript Coun...  

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/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord:   / discord  
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter:   / thecodingtrain  
📸 Instagram:   / the.coding.train  

🎥 Coding Challenges:    • Coding Challenges  
🎥 Intro to Programming:    • Start learning here!  

🔗 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-o...

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

#beginner #clocks #generativeart #javascript #p5js

Комментарии

Информация по комментариям в разработке