Coding Challenge #123: Chaos Game Part 2
In this multi-part coding challenge, I visualize the "Chaos Game". Code: https://thecodingtrain.com/challenges/123-chaos-game
p5.js Web Editor Sketches:
πΉοΈ The Chaos Game Part 1: https://editor.p5js.org/codingtrain/sketches/BJqKF9KRQ
πΉοΈ The Chaos Game Part 2: https://editor.p5js.org/codingtrain/sketches/ByF-2qK0X
π₯ Previous video: https://youtu.be/yLuk0twx8Hc?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/mhjuuHl6qHM?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Algorithm Archive: https://www.algorithm-archive.org/
π Chaos Game on Wikipedia: https://en.wikipedia.org/wiki/Chaos_game
π Refactor by Espen Sande Larsen: https://soundcloud.com/espen-sande-larsen-365984601/refactor
Videos:
π₯ Part 1: https://youtu.be/7gNzMtYo9n4
π₯ LeoisOS: https://www.youtube.com/LeiosOS
π₯ Chaos Game: https://youtu.be/kbKtFN71Lfs
π ES6 const: https://www.youtube.com/watch?v=2iLVFyYwyRA
π΄ Coding Train Live 161: https://youtu.be/v8lm5XZ2V6M?t=2680s
Thinkercon Shoutouts:
π€ DESTIN SANDLIN: https://www.youtube.com/smartereveryday
π€ HENRY REICH: https://www.youtube.com/user/minutephysics
π€ EMILY GRASLIE: https://www.youtube.com/user/thebrainscoop
π€ SABRINA CRUZ: https://www.youtube.com/nerdyandquirky
π€ ROBERT KRULWICH: https://www.wnycstudios.org/shows/radiolab
Related Coding Challenges:
π #2 Menger Sponge Fractal: https://youtu.be/LG8ZK-rRkXo
π #126 Toothpicks: https://youtu.be/-OL_sw2MiYw
π #129 Koch Fractal Snowflake: https://youtu.be/X8bXDKqMsXE
Timestamps:
0:00 Introduction
1:15 Make an array called points
2:06 Add the current point
3:04 Show seedpoints
3:50 Lerp between current and next
4:29 Draw point
4:55 reset()
6:30 Place points around circle
7:30 Define angle
8:02 Make vector from angle
9:36 Add percent variable
11:23 Make pentagon
12:06 Add constraint on next point
13:20 What could you do?
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
#chaosgame #fractal #seedpoints #probability #p5js #javascript