SketchBook

幸せ自慢

function setup(){
createCanvas(500,900);
}
var y=0;
var x=1;
var c=250
function draw(){
background(250,c,c);
stroke(100);strokeWeight(0.5);
line(0,y+600,500,y+600);line(0,y+800,500,y+800);line(0,y+1080,900,y+1080)
noStroke();
fill(250,140,140);ellipse(50,y+80,50);
fill(75,229,255);ellipse(50,y+640,50);
fill(41);ellipse(50,y+840,50);
fill(0);
textFont("Noto Sans CJK JP");textSize(50);text("Me",80,y+90);
textSize(30);text("Villager A",80,y+645);text("Anonymous",80,y+845);
text("友達と○○○○○に行ってきた!\nマジで楽しかった!最高!\n👇友達とペアのキーホルダー😍",40,y+180);
textSize(25);text("うわぁ〜いいな〜!楽しそう!\nキーホルダーかわいい!",40,y+700);
textSize(28);text("何これ\n幸せ自慢かよ\n気持ち悪い\n氏ねよ",40,y+910);
fill(217,174,201);rect(40,y+280,420,260);
fill(80);textSize(18);text("@myselforyourself",80,y+110);
textSize(12);text("@justavillager",80,y+665);text("@anonymouswhohurtyou.",80,y+865);
noFill();strokeWeight(2);
stroke(100);ellipse(90,y+570,40);rect(170,y+552,40,36);triangle(270,y+550,290,y+590,310,y+550);
triangle(360,y+590,380,y+550,400,y+590);
ellipse(90,y+770,36);rect(170,y+752,38,32);triangle(272,y+750,290,y+785,308,y+750);
triangle(362,y+785,380,y+750,398,y+785);
ellipse(90,y+1050,36);rect(170,y+1032,38,32);triangle(272,y+1030,290,y+1065,308,y+1030);
triangle(362,y+1065,380,y+1030,398,y+1065);
x=x+1;
point(x,5000);
if(x>180){
y=y-1;
}
fill(random(0,200),0,0);
if(y<-444){
x=x-80;
c=20;
ellipse(random(0,500),random(0,900),random(60,300));
ellipse(random(0,500),random(0,900),random(60,300));
ellipse(random(0,500),random(0,900),random(60,300));
ellipse(random(0,500),random(0,900),random(60,300));
ellipse(random(0,500),random(0,900),random(60,300));
triangle(random(0,500),random(0,900),random(0,500),random(0,900),random(0,500),random(0,900),);
triangle(random(0,500),random(0,900),random(0,500),random(0,900),random(0,500),random(0,900),);
triangle(random(0,500),random(0,900),random(0,500),random(0,900),random(0,500),random(0,900),);
triangle(random(0,500),random(0,900),random(0,500),random(0,900),random(0,500),random(0,900),);
triangle(random(0,500),random(0,900),random(0,500),random(0,900),random(0,500),random(0,900),);
line(random(0,500),random(0,900),random(0,500),random(0,900));
line(random(0,500),random(0,900),random(0,500),random(0,900));
line(random(0,500),random(0,900),random(0,500),random(0,900));
line(random(0,500),random(0,900),random(0,500),random(0,900));
line(random(0,500),random(0,900),random(0,500),random(0,900));
line(random(0,500),random(0,900),random(0,500),random(0,900));
}
fill(random(0,200),0,0);
textSize(45);textFont("Noto Serif CJK JP");
if(x<-4000){
ellipse(random(0,500),random(0,900),random(60,300));
ellipse(random(0,500),random(0,900),random(60,300));
triangle(random(0,500),random(0,900),random(0,500),random(0,900),random(0,500),random(0,900),);
triangle(random(0,500),random(0,900),random(0,500),random(0,900),random(0,500),random(0,900),);
triangle(random(0,500),random(0,900),random(0,500),random(0,900),random(0,500),random(0,900),);
line(random(0,500),random(0,900),random(0,500),random(0,900));
line(random(0,500),random(0,900),random(0,500),random(0,900));
line(random(0,500),random(0,900),random(0,500),random(0,900));
line(random(0,500),random(0,900),random(0,500),random(0,900));
line(random(0,500),random(0,900),random(0,500),random(0,900));
line(random(0,500),random(0,900),random(0,500),random(0,900));
fill(255,255,0);
text("誹謗中傷はやめましょう。\nDon't slander people.",20,400);
}
noStroke();
fill(245);
rect(0,0,500,40);
textSize(23);textFont("Noto Serif CJK JP");
fill(0);
const h=hour();
const m=minute();
if(h<10){
text("0"+h,10,30);
}
if(h>=10){
text(h,10,30);
}
if(m<10){
text("0"+m,44,30);
}
if(m>=10){
text(m,44,30);
}
text(" : ",30,28);
textSize(16);text("77%",460,32);
rect(445,15,10,17); triangle(415,32,434,32,434,10);
noFill();stroke(0);strokeWeight(2);
rect(445,10,10,22);
}