Arranging an array of objects in a grid

you hand the random color down to the class memory ‘col’

but in void display only use

stroke(0);
fill(0);

try

fill(col);
1 Like