Coding Challenge #23: 2D Supershapes

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=ksRoh-10lak



Duration: 15:22
81,327 views
1,469


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







Tags:
coding
challenge
supershapes
superformulas
tutorial
coding challenge
creative coding
daniel shiffman
p5.js
algorithms
javascript
p5.js tutorial
2d
javascript (programming language)
p5js
programming challenge
supershape
superformula
superellipse