SketchBook

2学期最終課題

var zzz=10
var uuu=200
var aaa=0
var bbb=0
var ccc=100
var ddd=600
var eee=450
var fff=-200
var ggg=500
var hhh=-30
var iii=0
var jjj=100
var kkk=78
var lll=156
var mmm;
var ooo;
function setup(){
createCanvas(800,450);
aaa=aaa+random(0,800)
bbb=bbb+random(0,450)
ooo=random(30,150)
}

function draw(){
background(210,210,250);
zzz=zzz+1
if(zzz>100){
ccc=ccc+1
}
uuu=uuu-0.9
stroke(250,250,210);
fill(150,150,150,uuu);
rect(-10,-10,1000,1000);
fill(0,230,0,50);
frameRate(20);
ellipse(aaa,bbb,zzz);
ellipse(800-aaa,450-bbb,zzz);
ellipse(aaa+400,bbb-200,zzz);
ellipse(aaa-400,bbb+200,zzz);
ellipse(aaa-50,bbb+225,zzz);
ellipse(aaa+50,bbb-225,zzz);
strokeWeight(3);
stroke(200,196,222);
fill(ccc,ccc,ccc);
triangle(400,225,300,225,400,25);
triangle(400,225,300,225,400,425);
triangle(400,225,500,225,400,25);
triangle(400,225,500,225,400,425);
if(zzz>400){
eee=eee-5
noStroke();
fill(225,225,225);
rect(0,0,1000,1000);
fill(0,255,0,50);
rect(0,0,1000,1000);
fill(106,90,205);
ellipse(ddd,eee,ooo);
ellipse(ddd+200,eee,ooo+15);
ellipse(ddd+400,eee,ooo-30);
ellipse(ddd-200,eee,ooo-45);
ellipse(ddd-400,eee,ooo-15);
ellipse(ddd+500,eee,ooo+30);
ellipse(ddd-500,eee,ooo+45);
for (var i=0;i>3;i=i+1) {
if(eee<10){
eee=450
}
}
}

if(eee<-10){
fff=fff+20
fill(106,90,205);
stroke(0,255,0,50);
ellipse(fff,225,550);}
if(fff>500){
mmm=random(0,50)
hhh=hhh+10
fill(jjj,kkk,lll);
rect(0,0,1000,hhh);
jjj=jjj+2.5
kkk=kkk+2.5
lll=lll+2.5
if (jjj>255){
frameRate(10);
strokeWeight(3);
stroke(200,196,222);
triangle(mouseX,mouseY,mouseX+200,mouseY,mouseX,mouseY+200);
triangle(mouseX,mouseY,mouseX+200,mouseY,mouseX,mouseY-200);
triangle(mouseX,mouseY,mouseX-200,mouseY,mouseX,mouseY+200);
triangle(mouseX,mouseY,mouseX-200,mouseY,mouseX,mouseY-200);
line(mouseX+200,mouseY,mouseX-200,mouseY);
line(mouseX,mouseY+200,mouseX,mouseY-200);
strokeWeight(13);
noFill();
stroke(64,224,208);
ellipse(random(-10,810),random(-10,400),random(5,100));
stroke(138,43,226);
line(mmm,0,mmm,450);
line(800-mmm,0,800-mmm,450);
stroke(250,250,210);
rect(random(0,800),random(0,400),100,100);
fill(72,61,139);
stroke(72,61,139);
rect(120,370,610,50);
fill(230,230,250);
stroke(25,25,112);
strokeWeight(7);
textSize(30);
text("The possibilities of dreams and hearts.",120,400);
}
}
}