this is the code i have so far, im having trouble navigating through the top of the image please help
// Move the mouse across the image
// to change its value
int x=0; //starting x point for the image
int y=0;//starting y point for the image
void setup() {
//size of screen
size(400, 400);
}
void draw() {
//input white background
background(255);
//loading image
PImage img = loadImage("Chrysanthemum.jpg");
//location of the image
image(img, x, y);
//negivating through the image on the left screen
if (mouseX > 350) {
x=x-5;
}
//negivating through the image on the right screen
if (mouseX < 100) {
x=x+10;
}
//negivating through the image on the bottom screen
if (mouseY > 350) {
y=y-10;
x=0;
}
}