Coding Challenge
Автор: The Coding Train
Загружено: 2019-02-14
Просмотров: 92596
In this video, I visualize the "mathematical heart" Cardioid using times tables calculations. Code: https://thecodingtrain.com/challenges...
🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...
🎥 Previous video: • Coding Challenge 132: Fluid Simulation
🎥 Next video: • Coding Challenge #134.1: Heart Curve
🎥 All videos: • Coding Challenges
References:
🗄 Cardioid on Wikipedia: https://en.wikipedia.org/wiki/Cardioid
📝 Rainbow Topics suggestion from Eduardddd: https://github.com/CodingTrain/Rainbo...
Videos:
🎥 Times Tables, Mandelbrot and the Heart of Mathematics: • Times Tables, Mandelbrot and the Heart of ...
🎥 Times Tables Visualization Poster in Processing: • Times Tables Visualization Poster in Proce...
🎥 Polar Coordinates: • 3.4 Polar Coordinates - The Nature of Code
🎥 The Modulo Operator: • Guest Tutorial #6: The Modulo Operator wit...
🔴 Coding Train Live 168: • Coding Train Live 168: Mathematical Hearts...
Related Coding Challenges:
🚂 #21 Mandelbrot Set with p5.js: • Coding Challenge 21: Mandelbrot Set
🚂 #116 Lissajous Curve Table: • Coding Challenge #116: Lissajous Curve Table
🚂 #134 Heart Curve: • Coding Challenge #134.1: Heart Curve
🚂 #163 Bézier Curves: • Bézier curves (Coding Challenge 163)
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: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://thecodingtrain.com/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...
#cardioid #cardioidtimestables #timestablesvisualization #heartalgorithm #polarcoordinates #modulooperator #processing
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: