p5.js Coding Tutorial | String Art @pattvira
p5.js Coding Tutorial | String Art  @pattvira
Uploaded February 2025 | Updated November 2026, 1 hour 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
πŸ”— String Art Code: editor.p5js.org/pattvira/sketches/x2lYLN8xB
πŸ”— Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn

References:
πŸ”— Petros Vrellis: instagram.com/pvrellis

Timestamps:
0:00 Intro
01:15 Approach
02:30 Step 1: Prepare the Base Image
07:42 Step 2: Define the Circular Frame
15:36 Step 3: Find the Optimal Thread Paths (Greedy Algorithm)
30:40 Step 4: Update the Image
36:08 Final results!
37:02 Save and export thread paths
p5.js Coding Tutorial | String ArtWhat is Object-Oriented Programming (OOP) - Creative Coding with p5.jsp5.js Coding Tutorial | Persistence of Vision Effectp5.js Coding Tutorial | Location-Based Data Visualizationp5.js Coding Tutorial |  Bouncing Ballp5.js Coding Tutorial | Create Raster Graphics from ImageUpdate: What’s next for the channel?Falling Letters w Secret Message #p5js #javascript #codingp5.js Coding Tutorial | Disco Grid (Perlin Noise)p5.js Coding Tutorial | Springy Chain with matter.js πŸ”—p5.js Coding Tutorial | Reaction Diffusion✨ Sparking Curiosity: The Power of Creative Coding
Patt Vira |

p5.js Coding Tutorial | String Art

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER