Getting tied up in 3D Knots in Processing is loads of fun! Thank you to Paul Bourke for the helpful reference and formulae! Code: thecodingtrain.com/challenges...
🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
🎥 Previous video: • Coding Challenge #86: ...
🎥 Next video: • Coding Challenge #88: ...
🎥 All videos: • Coding Challenges
References:
📔 Knots: paulbourke.net/geometry/knots/
📝 Knot Theory: en.wikipedia.org/wiki/Knot_th...
Live Stream Archive:
🔴 Coding Train Live 111: • Live Stream #111: More...
Related Coding Challenges:
🚂 #25 Spherical Geometry: • Coding Challenge #25: ...
🚂 #12 The Lorenz Attractor: • Coding Challenge #12: ...
🚂 #86 Cube Wave by Bees and Bombs: • Coding Challenge #86: ...
Timestamps:
0:00 Introduction
1:30 Understanding the equations and spherical coordinates
2:47 Coding starts here!
3:44 Implementing the formulae into code
5:03 Making the shape
5:30 Translate to the middle
6:21 That kinda looks like a knot!
8:04 Making it look pretty
8:58 Animating the knot
10:53 Adding the color back
12:00 Things you can try!
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: thecodingtrain.com/discord
💖 Membership: kzitem.infojoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#3drendering #3dknots #polartocartesiancoordinates #java #processing
Негізгі бет Coding Challenge #87: 3D Knots
Пікірлер: 83