This browser has no WebGPU, so the sketch cannot run here. The program is below, and it runs in a current Chrome, Edge or Safari.
Color Math
sum up single cell fields exhibiting primary RGB colors
//////////////////////////////////////////////////////////
// color-math
// sum up single cell fields exhibiting primary RGB colors
//////////////////////////////////////////////////////////
#R{ dim = (1); set = (1,0,0);}
~R{ col = #R; pos = (-1,1,0); scl = (0.25); }
#G{ dim = (1); set = (0,1,0);}
~G{ col = #G; pos = (0,1,0); scl = (0.25); }
#B{ dim = (1); set = (0,0,1);}
~B{ col = #B; pos = (1,1,0); scl = (0.25); }
#RG{ dim = (1); run = add(#R, #G);}
~RG{ col = #RG; pos = (-0.5,0,0); scl = (0.25); }
#GB{ dim = (1); run = add(#G, #B);}
~GB{ col = #GB; pos = (0.5,0,0); scl = (0.25); }
#RGB{ dim = (1); run = add(#R, #G, #B);}
~RGB{ col = #RGB; pos = (0,-1,0); scl = (0.25); }