<sxh>

var img;

function preload() {

img = loadImage('IMG_4790.jpg');

}

function setup() {

createCanvas(windowWidth, windowHeight);
background(0);

}

function draw() {

background(0);
image(img, windowWidth/3, 0, 640*windowHeight/1036, windowHeight);
var laCouleur = get(mouseX, mouseY);
fill(laCouleur);
//text(laCouleur,mouseX,mouseY);
print(laCouleur);
noStroke();
rect(mouseX, mouseY, 50, 50); 

}

</shx>