xxxxxxxxxx
int eSize = 12;
size(400, 400);
colorMode(RGB, 600, 600, 600);
background(0);
smooth();
noStroke();
for(int y = 0; y <= 400; y += 20){
for(int x = 0; x <= 400; x += 20){
if(y > 100 && y <=200&& x > 100 && x < 300){
}else{
if(x < 200){
fill(y, 400 - y, 0);
}else if (x > 200) {
fill(400, y, 400 - y);
}
ellipse(x, y, eSize, eSize);
}
}
}
ellipseMode(CENTER);
size(400, 400);
ellipse(200, 160, 180, 100);
noStroke();
colorMode(RGB, 400);
for (int i = 0; i < 400; i++) {
for (int j = 0; j < 400; j++) {
stroke(i, j, 400);
point(i, j);
}
}