vuejs take rgba values from coordinate

JavaScript
var pixelData = canvas.getContext('2d').getImageData(event.offsetX, event.offsetY, 1, 1).data;

Source

Also in JavaScript: