13:00Coding Challenge #55: Mathematical Rose Patterns
From the creator
In this coding challenge, I attempt to create rose (rhodonea) curves using trigonometry function and polar coordinates. Code: https://thecodingtrain.com/challenges/55-mathematical-rose-patterns 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/3kanFIcHd 🎥 Previous video: https://youtu.be/sJ6pMLp_IaI?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: 🏛 Rose Mathematics on Wikipedia: https://en.wikipedia.org/wiki/Rose_(mathematics) Live Stream Archives: 🔴 Live Stream #76: https://youtu.be/OkkjlHTdLGI Related Coding Challenges: 🚂 #116 Lissajous Curve Table: https://youtu.be/--6eyLO78CY 🚂 #125 Fourier Series: https://youtu.be/Mm2eYfj0SgA 🚂 #133 Times Tables Cardioid Visualization: https://youtu.be/bl3nc_a1nvs 🚂 #134 Heart Curve: https://youtu.be/oUBAi9xQ2X4 🚂 #C1 - Coding in the Cabana Maurer Rose: https://youtu.be/4uU9lZ-HSqA Timestamps: 0:00 Introduction to the Mathematical Rose Patterns Coding Challenge 0:35 Whiteboard discussion of polar coordinates 3:15 Discussion about how to use the r=cos(kθ) formula 3:45 Into the code...draw a circle with polar to cartesian transformation 5:30 Start to draw shapes using the formula 6:46 In a way, we're done! But wait, there's more... 7:35 Re-creating some patterns from the Wikipedia page; using the k=n/d form 8:50 Adding the p5.js DOM library to create some sliders 10:30 Re-factoring the code use the denominator of the k=n/
Published 2017-02-08 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





