xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(100);
}
function draw() {
createCanvas(windowWidth, windowHeight);
//background(0, 136, 255, 150);
background(255);
strokeWeight(5);
//stroke(250, 0, 200, 100);
/* fill(10, 250, 50, 100);
ellipse(mouseX, mouseY, 100, 50);
rect(mouseX, mouseY, 150, 70);
*/
for(let x = 0; x < width; x = x + 20){
stroke(250, map(x, 0, width, 30, 250), 0, 200);
line(x, 0, mouseX, mouseY);
stroke(250, map(x, 0, width, 250, 30), 0, 200);
line(x, height, mouseX, mouseY);
for(let y = 0; y < height; y = y + 30){
stroke(0, map(y, 0, height, 220, 0), 250);
line(0, y, mouseX, mouseY);
stroke(0, map(y, 0, height, 0, 220), 250);
line(width, y, mouseX, mouseY);
//pink = 255, 0, 125
//green = 8, 255, 0
}
}
}