Weird shape, just like that

I don’t really know what I was doing when I coded this shape. It is just weird, as the title indicates. The link to the shape is here, should it not be visible on a mobile screen. Don’t forget to move the cursor over the canvas every time you want to actually see the action.

var col = 0;
var stop = 380;


function setup() {
  createCanvas(400, 400);
  //background(220);
}

function draw() {
  col = map(mouseX, 0, 400, 0, 400)
  background(220);
  fill(225, 0, 220)
  noStroke()
  if(mouseX < stop){
  ellipse(mouseX, mouseY, col, 50)
  ellipse(mouseX, mouseY, 50, col)
  mouseX = mouseX + 1
  mouseY = mouseY + 1
  } 
}

Leave a Reply