having issues with line 27 and 28, I’m not sure how to properly write that line
<//r,b,g,y
boolean colours = {false,false,false,false};
color coloursTrue = {color(255, 0, 0) , color(0,0,255) , color(0,255,0) , color(255,255,0)};
color coloursFalse = {color(100, 0, 0) , color(0,0,100) , color(0,100,0) , color(100,100,0)};
ArrayList pattern = new ArrayList();
void setup(){
size(600,600);
background(200);
}
void draw(){
fill(100); ellipse(300,300,500,500);
if (colours[0]){fill(coloursTrue[0]);} else {fill(coloursFalse[0]);} arc(300, 300, 500, 500, -PI, -HALF_PI);
if (colours[1]){fill(coloursTrue[0]);} else {fill(coloursFalse[1]);} arc(300, 300, 500, 500, -HALF_PI, 0);
if (colours[2]){fill(coloursTrue[0]);} else {fill(coloursFalse[2]);} arc(300, 300, 500, 500, 0, HALF_PI);
if (colours[3]){fill(coloursTrue[0]);} else {fill(coloursFalse[3]);} arc(300, 300, 500, 500, HALF_PI, PI);
line(50,300,550,300);
line(300,50,300,550);
}
void showPattern () {
pattern.add((int)random(0, 4));
for (int i = 0; i < size(pattern); i++) {
colours[pattern.get(i)] = true;
}
}>