SketchBook

ぼんやり

function setup() { 
createCanvas(300, 300);
strokeWeight(3);
}

function draw() {
line(170,0,0,170);
strokeWeight(10);

line(300,130,130,300);
strokeWeight(10);

line(130,0,300,170);
strokeWeight(10);

line(0,130,170,300);
strokeWeight(10);
stroke(150, 180, 200);

var from = color(210, 200, 210);
var to = color(215, 220, 225);
noStroke();
var tmp = frameCount % 360
background(lerpColor(from, to, sin(tmp * PI / 180)));
ellipse(random(0, 300), random(0, 300), random(50, 150));


}