How should i begin with color detection in my maze game

PLZ help me i just started with codeing

Be more explicit, what exactly do you want to do?
First of all you can create a color() variable
and from here idk what exactly you want to do with the color detection.

color a =  color(0, 234, 43);
color b = color(0,234,46);

void setup() {
  size(500, 500);
}
void draw() {
  if (a == b) {
    fill(a);
    rect(100, 100, 100, 100);
  }
  else{
  fill(b);
  ellipse(100,100,100,100);
  }
}

I hope this lil example will help you

1 Like

Thank you so much this helped me with my project :slight_smile:

1 Like