<canvas width="600" height="400"></canvas>
<script>
let screen = document.querySelector("canvas");
let brush = screen.getContext("2d");
brush.fillStyle = "lightgrey";
brush.fillRect(0, 0, 600, 400);
function designCircle(x, y, radio){
brush.fillStyle = "blue";
brush.beginPath();
brush.arc(x, y, radio, 0, 2*Math.PI);
brush.fill();
}
function cleanScreen(){
brush.clearRect(0, 0, 600, 400);
}
let x = 0;
function uploadScreen(){
cleanScreen();
designCircle(x, 20, 10);
x++;
}
setInterval(uploadScreen, 15);
</script>