Coding Challenge #81.1: Circle Morphing - Part 1
In this multi-part challenge, I implement two possible solutions to Golan Levin's Circle Morphing challenge. Code: https://thecodingtrain.com/challenges/81-circle-morphing
p5.js Web Editor Sketches:
πΉοΈ Circle Morphing - Part 1: https://editor.p5js.org/codingtrain/sketches/r9AhwHO9o
πΉοΈ Circle Morphing - Part 2: https://editor.p5js.org/codingtrain/sketches/muq_AnqEu
Other Parts of this Challenge:
πΊ Circle Morphing - Part 2: https://youtu.be/0veqAiA61AU
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Golan Levin's GitHub repo on Circle Morphing: https://github.com/golanlevin/circle-morphing
Videos:
π₯ Polar to Cartesian Coordinates: https://youtu.be/O5wjXoFrau4
π₯ Golan Levin's Modulo Operator video: https://www.youtube.com/watch?v=r5Iy3v1co0A
π₯ Golan Levin's Circle Morphing Challenge: https://www.youtube.com/watch?v=mvgcNOX8JGQ
π΄ Live Stream Archive: https://youtu.be/ldx_J589fcs
Related Coding Challenges:
π #163 BΓ©zier Curves: https://youtu.be/enNfb6p3j_g
Timestamps:
0:00 Introducing today's topic: Circle Morphing
3:58 Use polar coordinates to get the points on the circle
6:17 Draw the path of the circle
7:36 Get the triangle path
15:30 Write a polar to cartesian function
18:43 Use modulus to get the points on the triangle path
23:19 Use lerp() to morph between the circle and triangle
25:33 Use the sine function to ossillate between a circle and a triangle
28:25 Conclusion and suggstions for variations
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
#golanlevin #interpolation #circlemorphing #polarcoordinates #javascript #p5js