Coding Challenge #134.2: Heart Curve GIF Loop
In this multi-part challenge, I use a parametric equation (from Wolfram Mathworld) to draw a heart curve in Processing (Java). Code: https://thecodingtrain.com/challenges/134-heart-curve
p5.js Web Editor Sketches:
πΉοΈ Heart Curve: https://editor.p5js.org/codingtrain/sketches/egvieHyt0
πΉοΈ Beating Heart GIF: https://editor.p5js.org/codingtrain/sketches/egvieHyt0
π₯ Previous video: https://youtu.be/bl3nc_a1nvs?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/nBKwCCtWlUg?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
β€οΈ Heart Curve Formulas: http://mathworld.wolfram.com/HeartCurve.html
π Daily Art: http://sasj.tumblr.com/
π Bees & Bombs: https://beesandbombs.tumblr.com/
πΎ Loop Templates: https://github.com/golanlevin/LoopTemplates
πΎ EZGIF: https://ezgif.com/
Videos:
π₯ Part 1: https://youtu.be/oUBAi9xQ2X4
π₯ Polar Coordinates: https://youtu.be/O5wjXoFrau4
π₯ Drawing with Fourier Transform and Epicycles: https://www.youtube.com/watch?v=MY4luNgGfms
π₯ Livestream Archive: https://youtu.be/_xa87yl0nd4
Related Coding Challenges:
π #133 Times Tables Cardioid Visualization: https://youtu.be/bl3nc_a1nvs
π #135 Making a GIF Loop in Processing: https://youtu.be/nBKwCCtWlUg
Timestamps:
0:00 Bonus Video: Make a GIF loop of the heart
0:33 The GIF loop should start where it ends
1:32 Map the angle to percent
2:35 Animate by adding and removing points from the array
4:16 Use sine to animate the beating of the heart
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
#heartcurve #parametricequation #polarcoordinates #gifloop #processing