p5.js Coding Tutorial | Conways Game of Life πŸ‘Ύ @pattvira
p5.js Coding Tutorial | Conways Game of Life πŸ‘Ύ  @pattvira
Uploaded February 2024 | Updated November 2026, 26 minutes ago
LET'S CONNECT
✨ Sign up for my newsletter at pattvira.com
✨ Instagram: instagram.com/pattvira
✨ Twitter: twitter.com/pattvira
--
Links:
πŸ”— p5.js editor: editor.p5js.org
πŸ”— Conway's Game of Life Code: editor.p5js.org/pattvira/sketches/cGuJD9_Ak
πŸ”— Introduction to Creative Coding Playlist: youtube.com/playlist?list=PL0beHPVMklwgMz4Z-mNp4_udo9mjBk7pn&si=XhvQaojd6cIrxvdn

References:
πŸ”— Conway's Game of Life Wikipedia Article: en.wikipedia.org/wiki/Conway%27s_Game_of_Life
πŸ”— @numberphile 's video with John Conway: youtube.com/watch?v=R9Plq-D1gEk
πŸ”— @TheCodingTrain 's Cellular Automata Series:
πŸ”— Elementary Cellular Automata: youtu.be/Ggxt06qSAe4?si=8ICZmO1IbuqQzNuc
πŸ”— Falling Sand: youtu.be/L4u7Zy_b868?si=Lsj0g9wE1gKYAH-O

Timestamps:
0:00 Intro
1:16 Creating a grid of random cell's state (dead or alive)
5:49 Updating the state of the next generation of cells
6:50 Creating a function to sum up the states of neighboring cells
14:31 Wrapping the index value of neighboring cells using modulus %
18:07 Creating a Grid class
21:30 Creating 3 buttons: Play, Reset, and Random
27:02 Using mouseDragged() to bring cells to life!
32:18 Making it rain(bow)
p5.js Coding Tutorial | Conways Game of Life πŸ‘Ύp5.js Coding Tutorial | Snow (Object-oriented Programming)p5.js Coding Tutorial |  Circular Grid Graphics (Nested Loop / 2D Array)p5.js Coding Tutorial | Habit Tracker (Data Visualization)AI built 80% of my app. Here’s how I plan to design the rest.p5.js Coding Tutorial |  Color Changing Ball (If Statements)Introduction to Shaders: Shaping Functions (3/4)p5.js Coding Tutorial | Pixel Sortingp5.js Coding Tutorial | Oscillating Wavesp5.js Coding Tutorial | Interactive Vinyl Cover (Image Masking)Why Technical Literacy is Your Ultimate Defense Against AIp5.js Coding Tutorial | Donut Forget You Are Awesome 🍩 (aka coding DONUTS)
Patt Vira |

p5.js Coding Tutorial | Conway's Game of Life πŸ‘Ύ

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER