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
var circles = []; | |
function setup() { | |
createCanvas(400, 400); | |
for (var index = 0; index < 100; index = index + 1) { | |
circles[index] = { | |
x: width / 2, | |
y: height / 2, | |
xSpeed: random(-5, 5), |
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
var x = []; | |
var y = []; | |
var xSpeed = []; | |
var ySpeed = []; | |
var colors = []; | |
function setup() { | |
createCanvas(400, 400); | |
for (var index = 0; index < 100; index = index + 1) { |
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
var circles = []; | |
function setup() { | |
createCanvas(400, 400); | |
var count = 0; | |
while (count < 20) { | |
circles.push({ | |
x: random(width), | |
y: height, | |
vx: 0, |
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
background(255); | |
strokeWeight(3); | |
colorMode(HSB); | |
while (true) { | |
var h = random(360) | |
stroke(h, 50, 90); | |
fill(h, 50, 100); | |
var r = random(30, 60); |
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
background(255); | |
noStroke(); | |
var h = 0; | |
while(true) { | |
background(255); | |
colorMode(HSB); | |
fill(h, 100, 100); | |
ellipse(width/2, height/2, 100, 100); |