Una solución sería así:
<canvas width="600" height="400"> </canvas>
<script>
var pantalla = document.querySelector("canvas");
var pincel = pantalla.getContext("2d");
pincel.fillStyle = "grey";
pincel.fillRect(0,0,600,400);
var colores = ["red","green","blue"];
var num = 0;
function dibujarCirculo(evento){
var x = evento.pageX - pantalla.offsetLeft;
var y = evento.pageY - pantalla.offsetTop;
pincel.fillStyle = colores[num];
pincel.beginPath();
pincel.arc(x,y,10,0,2*3.14);
pincel.fill();
console.log(x + "," + y);
}
function alterarColor() {
num = num + 1;
console.log(num);
if (num > 2) {
num = 0;
}
return false;
}
pantalla.onclick = dibujarCirculo;
pantalla.oncontextmenu = alterarColor;
</script>