iris@web home/blog/IMA_LowRes/Summer_2026/Cerative_Coding/week02__260714/ %

Week 02

P5 Strands

Comprehension

There's a P5.strands version of the Game of Life simulation by @davepagurek on the P5 releases github page.

My self-assigned task was to comment the code as an exercise to understand how p5.strands can be used in the new WebGPU mode for general purpose GPU ("GPGPU") programming.

Reproduction

This sketch is a reproduction of the CC Week 1 homework to draw concentric circles, but with p5.Strand a filter shader instead of plain p5.js. I was able to render a single circle by myself, but then referenced a shader-learn.com GLSL resource to realize concentric rings.

Decomposition

Game of Life with Ring

The image above is a still from a talk by Kit Kuksenok where they demonstrate a Game of Life p5.strands sketch that also incorporates a circle element that allows the user to interact with the Game of Life cells using a mouse.

The purpose of this task is to practice problem decomposition.

Practice

In this sketch, I implemented the steps from the Decomposition section above.