xxxxxxxxxx
function setup(){
createCanvas(1000,1000);
background(168,136,184);
//beginRecord(PDF, "test.pdf");
}
function draw(){
//fading rect
fill(168,136,184);
rect(0,0,width,height);
////// inner yellow
var x=0;
translate(width/2,height/2);
while(x<100){
rotate(.2);
noFill();
stroke(247,225,76);
square(x,x,90);
x=x+0.3;
fill(237,133,230,187);
circle(x,x,10);
}
///2nd
var x2=150;
while(x2<200){
rotate(0.3);
fill(247,180,76,10);
stroke(247,180,76,10);
ellipse(x2,x2,30,50);
x2=x2+.3;
ellipse(x2,x2,40,60);
fill(52,87,238,50);
noStroke();
square(x2+5,x2,70);
fill(76,28,130,50);
stroke(227,211,244);
square(x2,x2,100);
}
////third
var x3 = 200;
while(x3<250){
rotate(0.3);
triangle(500,x3,500,x3,x3,x3);
x3=x3+.2;
stroke(66,62,226);
line(x3+2,x3,x3,x3);
}
var x4=300;
while(x4<350){
rotate(0.2);
stroke(123,123,45);
triangle(100,x4,x4,x4,x4,x4);
x4=x4+.3;
}
//if(mousePressed && mouseButton==RIGHT){
//endRecord();
}