Coding Challenge #123: Chaos Game Part 1

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



Duration: 12:41
66,597 views
1,716


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:
πŸŽ₯ Chaos Game, Part 2: https://youtu.be/A0NHGTggoOQ
πŸŽ₯ 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=1467s

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:30 How does the chaos game work?
3:45 Let's Code!
4:00 Add random seed points
5:51 Play the Chaos Game
7:39 Lerp between points
9:07 Seed points at corners
10:07 Add different colors
10:29 Sierpinski triangle
10:55 What could we change?

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
sierpinski triangle
JavaScript
IFS
iterative function system
p5.js tutorial