image hover?
I don't know if this will help but here's my code right now w/o beziers:
- PImage world;
PImage blush;
PImage carmex;
PImage deoderant;
PImage eyepencil;
PImage lipbalm;
PImage lipstick;
PImage makeuppads;
PImage moisture;
PImage sanitizer;
PImage sephshadow;
PImage stiletto;
PImage shadow;
PImage aquafresh;
int [] me = {156,169};
int [] france = {519,142};
int [] china = {874,167};
int [] taiwan = {908,183};
int [] italy = {552,156};
int [] germany = {532,119};
int [] canada = {222,97};
int [] canada2 = {179,124};
int [] newyork = {325,156};
int [] california = {168,195};
int [] uk = {505,121};
int [] surrey = {509,120};
int [] ohio = {303,155};
int [] wisconsin = {281,146};
//
int rotater =0;
boolean blushOver = false;
boolean carmexOver = false;
void setup() {
size(1200, 800, P3D);
world = loadImage("World.png");
blush = loadImage("blush.png");
carmex = loadImage("carmex.png");
deoderant = loadImage("deoderant.png");
eyepencil = loadImage("eyepencil.png");
lipbalm = loadImage("lipbalm.png");
lipstick = loadImage("lipstick.png");
makeuppads = loadImage("makeuppads.png");
moisture = loadImage("moisture.png");
sanitizer = loadImage("sanitizer.png");
sephshadow = loadImage("sephshadow.png");
shadow = loadImage("shadow.png");
stiletto = loadImage("stiletto.png");
aquafresh = loadImage("aquafresh.png");
}
void draw() {
println(mouseX);
println(mouseY);
background(0);
image(blush,-50,0,200,200);
image(carmex,0,125,100,100);
image(deoderant,0,200,100,100);
image(eyepencil,0,300,100,100);
image(lipbalm,1100,40,100,100);
image(lipstick,1110,120,100,100);
image(makeuppads,1100,200,100,100);
image(moisture,1100,300,100,100);
image(sanitizer,300,0,100,100);
image(shadow, 400,0,100,100);
image(stiletto,500,0,100,100);
image(aquafresh,580,0,130,100);
image(sephshadow,700,0,130,100);
translate(width/2, height/2);
rotateX(radians(35));
rotateZ(radians(rotater));
noFill();
image(world, -width/2,-height/2);
translate(-width/2, -height/2);
stroke(255);
strokeWeight(5);
}
void keyPressed() {
if (keyCode == LEFT) {
rotater += 1;
}
if (keyCode == RIGHT) {
rotater -= 1;
}
}
Here's my bezier's as well:
bezier(me[0],me[1], 0, me[0],me[1], 150, france[0],france[1],150, france[0],france[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, china[0],china[1],150, china[0],china[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, taiwan[0],taiwan[1],150, taiwan[0],taiwan[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, italy[0],italy[1],150, italy[0],italy[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, germany[0],germany[1],150, germany[0],germany[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, canada[0],canada[1],150, canada[0],canada[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, canada2[0],canada2[1],150, canada2[0],canada2[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, newyork[0],newyork[1],150, newyork[0],newyork[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, california[0],california[1],150, california[0],california[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, uk[0],uk[1],150, uk[0],uk[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, surrey[0],surrey[1],150, surrey[0],surrey[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, ohio[0],ohio[1],150, ohio[0],ohio[1], 0);
bezier(me[0],me[1], 0, me[0],me[1], 150, wisconsin[0],wisconsin[1],150, wisconsin[0],wisconsin[1], 0);