p5.js Coding Tutorial | Binary Clock @pattvira
p5.js Coding Tutorial | Binary Clock  @pattvira
Uploaded May 2024 | Updated November 2026, 3 hours ago
LET'S CONNECT
✨ Sign up for my newsletter at pattvira.com
✨ Instagram: instagram.com/pattvira
✨ Twitter: twitter.com/pattvira
--
Links:
πŸ”— p5.js editor: editor.p5js.org
πŸ”— Binary Clock Code: editor.p5js.org/pattvira/sketches/tl7W8xMmp
πŸ”— Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn

Timestamps:
0:00 Intro
1:37 Use hour(), minute(), and second() to get current time
2:27 Write a function to convert from decimal to binary
10:45 Convert current time from decimal to binary
12:27 Draw clock
15:44 Final touches
p5.js Coding Tutorial | Binary Clockp5.js Coding Tutorial | Wiper Typographyp5.js Coding Tutorial | Generative Smiley Faces (Generative Art Series)Life Update: Why I stopped posting and what’s nextCreative Coding Math: Linear Interpolation (Lerp Function)p5.js Coding Tutorial | Chladni PatternsProcessing Community Day Taiwanp5.js Coding Tutorial | Interactive Bridge with Bouncing Balls (matter.js + ml5.js)p5.js Coding Tutorial | Oscillating Kinetic Typographyp5.js Coding Tutorial | Flow Fields (Perlin Noise)p5.js Coding Tutorial | The Making of Animation - Beautiful Trigonometryp5.js Coding Tutorial | Falling Letters w Secret Message
Patt Vira |

p5.js Coding Tutorial | Binary Clock

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER