Coding Challenge #134.1: Heart Curve

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



Duration: 11:27
77,237 views
2,208


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 2: https://youtu.be/l5I3Q1JFISE
πŸŽ₯ 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 Introducing today's topic: drawing a heart curve
1:00 Start coding
2:27 Polar to cartesian coordinates
3:48 Try "futzing" with the equations
5:50 Add the equation for a heart
8:10 Animate the heart
10:41 Conclusion--can you draw a different heart curve?

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







Tags:
daniel shiffman
coding
the coding train
coding challenge
creative coding
code challenge
programming challenge
math heart
heart curve
mathematical heart
heart path
heart processing
heart drawing
parametric equation
polar equations
polar curves