Skip to content

Instantly share code, notes, and snippets.

@erdavids
Created July 17, 2019 19:44
Show Gist options
  • Save erdavids/7f5bb94edcf7f77e147d544d7a032c3f to your computer and use it in GitHub Desktop.
Save erdavids/7f5bb94edcf7f77e147d544d7a032c3f to your computer and use it in GitHub Desktop.
function setup() {
var canvasDiv = document.getElementById('sketchdiv')
var width = canvasDiv.offsetWidth
var height = 600
var cnv = createCanvas(width, height);
cnv.parent('sketchdiv');
background(206, 200, 176);
}
function draw() {
let x = random(width);
let y = random(height);
noStroke();
fill(random(255), random(255), random(255), 120);
var s = random(100)
ellipse(x, y, s, s);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment