Created
July 17, 2019 19:44
-
-
Save erdavids/7f5bb94edcf7f77e147d544d7a032c3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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