Coding Challenge #123: Chaos Game Part 2

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



Duration: 16:12
47,235 views
1,413


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







Tags:
computer science
programming
daniel shiffman
tutorial
coding
the coding train
coding challenge
coding train
creative coding
code challenge
creative coding tutorials
coding train coding challenge
chaos game
chaos game p5js
chaos game javascript
chaos game js
fractal
fractal js
fractal javascript
javascript (programming language)
programming challenge
fractals