/////////////////////////for now i tryed just with the first image
///////////////////////colonne
PImage colonna_1;
PImage colonna_2;
PImage colonna_3;
PImage colonna_4;
PImage colonna_5;
///////////////////////ombre
PImage ombraBiancaOrizzontale;
PImage ombraVerticale;
///////////////////////selettore
PImage selettore;
float Y_position_1 = -2216;
float Y_position_2 = -2216;
float Y_position_3 = -2216;
float Y_position_4 = -2216;
float Y_position_5 = -2216;
float X_position_1 = 0;
float X_position_2 = 256;
float X_position_3 = 512;
float X_position_4 = 768;
float X_position_5 = 1024;
void setup()
{
size(1280, 1024);
noStroke();
smooth();
colonna_1 = loadImage ("colonna_1.png");
colonna_2 = loadImage ("colonna_2.png");
colonna_3 = loadImage ("colonna_3.png");
colonna_4 = loadImage ("colonna_4.png");
colonna_5 = loadImage ("colonna_5.png");
ombraBiancaOrizzontale = loadImage ("ombra_bianca_orizzontale.png");
ombraVerticale = loadImage("ombra_verticale.png");
selettore = loadImage ("selettore.png");
}
void draw()
{
background(0);
image (colonna_1, X_position_1, Y_position_1);
image (colonna_2, X_position_2, Y_position_2);
image (colonna_3, X_position_3, Y_position_3);
image (colonna_4, X_position_4, Y_position_4);
image (colonna_5, X_position_5, Y_position_5);
image (ombraBiancaOrizzontale, 0, 0);
image (ombraVerticale, 0, 0);
image (selettore, 0, 426);
if (mousePressed == true) {
if (mouseX > 1162 && mouseX < 1268 && mouseY > 453 && mouseY < 571){
rect (1162, 453, 119, 119);
}
}
if (mousePressed == true) {
if (mouseX > 0 && mouseX < 256 ){
Y_position_1 = mouseY - Y_position_1;
}
}
else {
Y_position_1 = Y_position_1;
}
}
/////////////////////////////////////