Arranging an array of objects in a grid

NB: data type “color” stores r and g and b
so you can simplify your code

1 Like