Help for a beginner...
in
Programming Questions
•
1 year ago
I am working on a project and need a little help. I will have 3 working areas eventually. The umbrella area will have a "joystick" that will control 2 servos through arduino. Right now I am just trying to draw an ellipse in the umbrella area and be able to move it only withi the area of that image, and then have it spring back to the center of that image.
Here is the basis of what I have at the moment:
PImage umbrella;
PImage selection;
PImage stars;
void setup()
{
size(1440, 900);
{
size(1440, 900);
umbrella = loadImage("Umbrella_Corporation_logo.jpg");
selection = loadImage("Grocery-List.jpg");
stars = loadImage("absorptionspec.jpg");
noLoop();
}
selection = loadImage("Grocery-List.jpg");
stars = loadImage("absorptionspec.jpg");
noLoop();
}
void draw()
{
image(umbrella, 1140, 600);
image(selection, 1140, 0);
image(stars, 0, 0);
}
{
image(umbrella, 1140, 600);
image(selection, 1140, 0);
image(stars, 0, 0);
}
1