xxxxxxxxxx
90
let x = 300;
let y = 300;
let px = 300;
let py = 300;
let s = 300;
let r = 290
function setup() {
createCanvas(400, 400);
colorMode(HSB);
background(253, 36, 25);
}
function draw() {
blendMode(BLEND);
translate(width/2, height/2);
// push();
// // drawingContext.shadowOffsetX = 5;
// // drawingContext.shadowOffsetY = -5;
// // drawingContext.shadowColor = 'darkRed';
// rotate(radians(mouseX));
// textSize(37);
// // textFont('Long Cang');
// textFont('Liu Jian Mao Cao');
// textStyle(NORMAL);
// stroke(100, 50, 30);
// fill(28, 255, 225);
// strokeWeight(0.2);
// textAlign(CENTER, CENTER);
// textLeading(68);
// text('友\n谊\n地\n久\n天\n长', 0, 0);
// pop();
push();
noFill();
strokeWeight(0.5);
stroke(random(0, 57), 180, 95, 2);
ellipse(
random(-10, 10),
random(-10, 10),
r + random(-15, 25),
r + random(-25, 15)
);
noFill();
strokeWeight(1);
stroke(157, 5, random(50, 222), 3);
ellipse(
random(-2, 2),
random(-2, 2),
s + random(-5, 10),
s + random(-10, 5)
);
noFill();
strokeWeight(1);
stroke(157, 5, random(50, 222), 3);
ellipse(
random(-2, 2),
random(-2, 2),
s + random(-5, 10),
s + random(-10, 5)
);
pop();
}
function mousePressed() {
clear();
background(30);
}