11:42Coding Challenge #19: Superellipse
From the creator
In this coding challenge, I’m going to use superformulas to create a superellipse in p5.js. This is part 1 of a multi-part series on superformulas, superellipses and supershapes. Code: https://thecodingtrain.com/challenges/19-superellipse 🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/Hk-1AMTgN 🎥 Previous video: https://youtu.be/JcopTKXt8L8?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 Next video: https://youtu.be/jrk_lOg_pVA?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH 🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: 🔗 Superellipse on Wikipedia: https://en.wikipedia.org/wiki/Superellipse 🔗 Supershapes: http://paulbourke.net/geometry/supershape/ 📕 Nature of Code class on Kadenze: https://www.kadenze.com/courses/the-nature-of-code/info Videos: 🎥 Supershape track: https://thecodingtrain.com/tracks/supershapes 🔴 Coding Train Live 41: https://youtu.be/1Yo_AYzxA-o?t=7132s Related Coding Challenges: 🚂 #23 2D Supershapes: https://youtu.be/ksRoh-10lak 🚂 #25 Spherical Geometry: https://youtu.be/RkuBWEkBrZA 🚂 #26 3D Supershapes: https://youtu.be/akM4wMZIBWg 🚂 #112 3D Rendering with Rotation and Projection: https://youtu.be/p4Iz0XJY-Qk Timestamps: 0:00 Introduction to the Coding Challenge 0:56 Whiteboard discussion of polar coordinates 2:30 Into the code...drawing an ellipse using polar coordinates 4:38 Whiteboard discussion of the Superellipse formula 7:32 Implementing the Superellipse formula from Wikipedia 9:43
Published 2016-06-03 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





