Skip to content

Instantly share code, notes, and snippets.

@BrentAureli
Created July 20, 2018 13:16
Show Gist options
  • Save BrentAureli/59e0a361b736e71d78bfc19acb79ffbb to your computer and use it in GitHub Desktop.
Save BrentAureli/59e0a361b736e71d78bfc19acb79ffbb to your computer and use it in GitHub Desktop.
var x = 10
var y = 10
function setup() {
frameRate(1)
createCanvas(200, 200)
for(var i = 0; i < 10; i++)
setTimeout(addRect, 5000)
}
function addRect(){
rect(x, y, 20, 20)
x += 20
y += 20
}
function draw() {
ellipse(width/2, height/2, 50)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment