Coding Challenge #23: 2D Supershapes
In this coding challenge, I show you how to make 2D supershapes in p5.js. Code: https://thecodingtrain.com/challenges/23-2d-supershapes
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/_gTvNBjEu
π₯ Previous video: https://youtu.be/fAsaSkmbF5s?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/BjoM9oKOAKY?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Supershapes (Superformula): http://paulbourke.net/geometry/supershape/
Videos:
π₯ Supershape track: https://thecodingtrain.com/tracks/supershapes
π΄ Live Stream Archive #45: https://youtu.be/b_MMGJiUcbM
Related Coding Challenges:
π #19 Superellipse: https://youtu.be/z86cx2A4_3E
π #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
0:26 Paul Bourke's webpage
1:11 Polar Coordinates
2:29 Constants
4:35 Supershape function
9:45 Check code
10:18 Change constants
10:45 Fix formula
11:56 Change the angle increment
13:04 Adjust m with a slider
14:23 Animate with the sine function
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://discord.gg/hPuGy2g
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π 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-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#supershape #superellipse #polarcoordinates #p5js #javascript