dice.camp is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon server for RPG folks to hang out and talk. Not owned by a billionaire.

Administered by:

Server stats:

1.8K
active users

#processing

16 posts13 participants1 post today

My contribution to this week's #WCCChallenge: GOLly dish

openprocessing.org/sketch/2609

The "dish" is a circle filled with a hex grid of dots that follow the game of life rules and so "live" when they have two living neighbours and otherwise die; the color of a dot depicts the number of life circles.

(Inspired by "Petri Dish" by K Mc Guiness.)

Edit: If you can, use a pc for watching the animation; js appears to be a little too slow on a mobile browser..

mx=300;f=0;var r=[];A=["International","Asexual","Visibility","Day",""];
function setup() {createCanvas(mx,mx/2);b=0;g=127;w=g+g;r=[[b,b,b],[g,g,g],[w,w,w],[g,b,g],[b,b,b]];noSmooth();noStroke();rectMode(CORNER);y=0;while(f<4){y=re(y);}}
function re(y){h=mx/8;textSize(h);ll();f++;rect(0,y,mx,h);ll();text(A[f-1],0,y+h); return(y+h);}
function ll(){fill(r[f][0],r[f][1],r[f][2]);} #ACE #p5js #processing