Your colour values are all fully transparent so try background(color(array[i]));
background(color(array[i]));