Random white dots on dark background

The link is here. Move the mouse over the canvas. Not sure the effect is visible on mobile. Maybe with the link. Try it anyways.

var craziness

function setup() {
  createCanvas(windowWidth, windowHeight);
  //background(135, 206, 250);

function draw() {
  background(0, 0, 0, 25);
  craziness = {
    locationX: random(width),
    locationY: random(height),
    size: random(15, 20)
  //fill(255, 116, 140)
  ellipse(craziness.locationX, craziness.locationY, craziness.size, craziness.size)
  ellipse(mouseX, mouseY, craziness.size, craziness.size)

Leave a Reply