https://editor.p5js.org/avasalts99/sketches/bhZm5vwYj
function setup() {
createCanvas(1280, 720);
stroke(122);
strokeWeight(5)
}
function draw() {
background(225);
for(let y=0; y<=height; y+=40){
for(let x=0; x<=width; x+=40)
{
fill(255,0,0,63);
rect(x,y,40,40);
}
}
for(let y=0; y<=height;y+=40)
{
for(let x=0; x<=width; x+=40)
{
fill(255,0,0,63);
ellipse(x,y,40,40);
}
}
if(keyIsPressed){
for (let y=0; y<=height; y+=40)
{
for(let x=0; x<=width; x+=40)
{fill(207)
ellipse(x,y,40,40);
}}
}
}
I want to add different color lines or circles that move over the image. I also am thinking about changing the color of the grey circles to a different color.
Comments