Coding Challenge #50.1: Animated Circle Packing - Part 1

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



Category:
Tutorial
Duration: 28:32
243,550 views
5,234


In this multi-part coding challenge, I demonstrate how to use a circle packing algorithm. Code: https://thecodingtrain.com/challenges/50-animated-circle-packing

p5.js Web Editor Sketches:
πŸ•ΉοΈ Animated Circle Packing - Text: https://editor.p5js.org/codingtrain/sketches/wxGRAd4I-
πŸ•ΉοΈ Animated Circle Packing - Image: https://editor.p5js.org/codingtrain/sketches/tRpryH_um

πŸŽ₯ Previous video: https://youtu.be/nnlAH1zDBDE?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Next video: https://youtu.be/aKYlikFAV4k?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
πŸ’» Various Circle Packing Tutorials: http://julienleonard.com/tutorials.html
πŸ—„ Circle Packing on Wikipedia: https://en.wikipedia.org/wiki/Circle_packing

Videos:
πŸŽ₯ Part 2: https://youtu.be/ERQcYaaZ6F0
πŸŽ₯ Livestream Archive: https://youtu.be/pF0cadg2mg0

Related Coding Challenges:
πŸš‚ #47 Pixel Sorting in Processing: https://youtu.be/JUDYkxU6J0o

Timestamps:
0:00 Introduction
0:47 Circle Packing by Marius Watz
1:09 Create a Circle class
3:06 Add show()
4:22 Create an ArrayList
5:34 Null pointer exception
6:26 Add a grow() function
6:52 Add an edges() function
9:25 Add new circles at random x, y
10:07 Only add valid circles
14:03 Check for overlapping circles
16:02 Make sure circle is not checking itself
20:53 Seed circles based on pixel color
22:06 Read the pixels of an image
23:30 Add circles based on brightness of pixel

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

#loadpixels #circlepacking #processingpixels #processing







Tags:
live
programming
daniel shiffman
creative coding
p5.js
coding challenge
p5.js tutorial
p5js
javascript (programming language)
tutorial
javascript
algorithms
processing load pixels
coding
challenges
circle packing
processing pixel
processing loadPixels()
circle packed letters
circle packing words
circle words
processing pixel analysis
processing java circle packing
java pixel analysis