title: Color cannot be resolved to a type
body: <p>I am trying to make a simple maze game currently using processing in Eclipse. I am trying to make it so every time the mouse touches the walls, it resets, and the only way I know how to do this is by using the get() function. </p>
  
  <p>However, when I try to get() the color, it has no idea what color is. I have tried many times to find a solution but still cannot. If you can help me by explaining it in simple terms since I am a bit younger than most on this website that would be helpful. Here is my pasted code.</p>
  
  <pre><code>package MegaPackage;
  import java.awt.*;
  import java.util.*;
  import processing.core.PApplet;
  import processing.core.PImage;
  //Main method. Insert public variables and entities here.
  public class FlatShooter extends PApplet{
  public void settings(){
  size(900,900);  
  }
  public static void main(String [] args){
      String[] processingArgs = {"FlatShooter"};
      FlatShooter flatShooter = new FlatShooter();
      PApplet.runSketch(processingArgs, flatShooter);
  }
  PImage background;
  PImage life1Image;
  PImage life2Image;
  PImage life3Image;
  PImage redEnemyImage;
  public float xSpeedPlayer = 9;
  public int score;
  public int enemies;
  public int lives;
  public boolean moving = false;
  public boolean moving2 = false;
  public void setup(){        
      background=loadImage("maze.png");
      life1Image=loadImage("life_heart.png");
      life2Image=loadImage("life_heart.png");
      life3Image=loadImage("life_heart.png");
  }
  //Draw stuff
  public void draw(){
      background(background);
  
  }
  public class Cursor{
      public void CheckPosX(){
          color color_beside_mouse = get(mouseX, mouseY);
      }
  
  }
  }
  </code></pre>
  
  <p>Thank you very much.</p>