PImage img; color[] imageColors; int[][] myArray; void setup() { size(400,400); //read color palette from a color image img = loadImage("colpalette-A.jpg"); imageColors = new color[10]; for(int x = 0; x < 10; x+=1){ imageColors[x] = img.get(x*10+1,5); } int row = 20, col = 20; myArray = new int[row][]; for(int i = 0; i < row; i = i + 1){ myArray[i] = new int[col]; for(int j = 0; j < col; j = j + 1){ myArray[i][j] = round(random(10)); } } } void draw() { float rad; background(200);//clean up the background for(int i= 0; i