Рет қаралды 89,389
In this video, I visualize the "mathematical heart" Cardioid using times tables calculations. Code: thecodingtrain.com/challenges...
🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
🎥 Previous video: • Coding Challenge #132:...
🎥 Next video: • Coding Challenge #134....
🎥 All videos: • Coding Challenges
References:
🗄 Cardioid on Wikipedia: en.wikipedia.org/wiki/Cardioid
📝 Rainbow Topics suggestion from Eduardddd: github.com/CodingTrain/Rainbo...
Videos:
🎥 Times Tables, Mandelbrot and the Heart of Mathematics: • Times Tables, Mandelbr...
🎥 Times Tables Visualization Poster in Processing: • Times Tables Visualiza...
🎥 Polar Coordinates: • 3.4 Polar Coordinates ...
🎥 The Modulo Operator: • Guest Tutorial #6: The...
🔴 Coding Train Live 168: • Coding Train Live 168:...
Related Coding Challenges:
🚂 #21 Mandelbrot Set with p5.js: • Coding Challenge #21: ...
🚂 #116 Lissajous Curve Table: • Coding Challenge #116:...
🚂 #134 Heart Curve: • Coding Challenge #134....
🚂 #163 Bézier Curves: • Bézier curves (Coding ...
Timestamps:
0:00 Introduction
1:00 Simon Tiger's Processing Day presentation
2:07 Discussion of the times tables calculations
4:03 Start Coding!
5:34 Map the point's index to an angle
6:08 Use polar coordinates to get point location
6:31 Draw the points
7;48 Start with the 2-times table
8:37 Write a getVector() function
11:00 Use modulo operator to get remainder for mapping
12:28 Add PI to rotate the cardioid 180 degrees
13:31 Animate by mapping mouseX to the total number of points
14:34 Change to 3-times table
16:19 Animate by changing the factor
16:43 Conclusion and creative possibilities
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: kzfaq.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...
#cardioid #cardioidtimestables #timestablesvisualization #heartalgorithm #polarcoordinates #modulooperator #processing