xxxxxxxxxx
//let i, j;
//let value = 255;
function setup() {
createCanvas(windowWidth, windowHeight);
background(255);
}
let x = 0;
let y = 0;
let center = 0
let size = 0;
function draw() {
c=color("pink");
fill(c);
while(x < windowWidth){
line(x ,0 , x, windowHeight);
size=random(5,90);
for(center=50;center < windowHeight;center += 100){
size=(5,90);
fill(random(0,255),random(0,255),random(0,255));
ellipse(x+50,center, size, size);
}
x+=100;
}
for(y = 0; y < windowHeight; y+=100){
line(0, y, windowWidth, y)
// ellipse(50,y + 50, 50, 50);
}
if (mouseIsPressed)
size = random(70)
// line(mouseX, mouseY, 0, 0);
// line(mouseX, mouseY, windowWidth, windowHeight);
}
// Joses CODE
// Function draw() {
// for (let i = 0; i < windowWidth; i += 100) {
// line(i, 0, i, windowHeight);
// line( 0, i, windowHeight; j += 100) {
// // Start off with random size and fill
// fill(color(random(255),random(0,100), random(0,100)))
// size = random(90)
// if (mouseIsPressed) {
// size = random(90)
// fill(value);