xxxxxxxxxx
int row, col;
float cellw, cellh;
color[] colors = {#F94144, #F65A38, #F3722C,
#F68425, #F8961E, #F9AF37,
#F9C74F, #C5C35E, #90BE6D,
#6AB47C, #43AA8B, #4D908E,
#52838F, #577590};
//color[] colors = {#027373,#038C7F,#ADD9D1,#D95252,#0D0D0D};
void setup()
{
noStroke();
size(1000,1000);
background(255);
row=10;
col=10;
cellw=width/col;
cellh=height/row;
noLoop();
}
void draw()
{
for(int i=0;i<col;i++)
{
for(int j=0;j<row;j++)
{
int a = int(random(0,13));
float circlesize=random(cellw);
fill(colors[a]);
rect(i*cellw+cellw/2,j*cellh+cellh/2,cellw,cellh);
ellipse(i*cellw+cellw/2,j*cellh+cellh/2,circlesize,circlesize);
ellipse(i*cellw+cellw/2,j*cellh+cellh/2,cellw,cellh);
}
}
}