Well, what I want is to know if there is a function where the click is detected in the image but not in the emptiness (in the transparency), for example in the phaser framework there is a function where this is done which is this
var image= game.add.sprite(500, 220, 'image');
image.inputEnabled = true;
image.input.pixelPerfectClick = true;
image.events.onInputDown.add( function(){
console.log("SE DIO CLICK EN ELLA");
}, this);
Is there a method that can do this without using frameworks?