-1
HTML
<!DOCTYPE html>
<html lang="pt-br">
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/addons/p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8" />
</head>
<body>
<script src="scripts/jogo/personagem.js"></script>
<script src="scripts/jogo/cenario.js"></script>
<script src="sketch.js"></script>
</body>
</html>
CSS
html, body {
margin: 0;
padding: 0;
}
canvas {
display: block;
}
Javascript
function setup(){
createCanvas(windowWidth,windowHeight);
}
function draw(){
background(200)
circle(mouseX,mouseY,200)
}
How does it appear on the console.log the position of the "mouseX" and "Mousey" white ball ?
It is necessary to use the event Mousemove
– Valdeir Psr