xxxxxxxxxx
function setup(){
createCanvas(1000,1000);
background(86,120,60);
//scale(2);
//beginRecord(PDF, "test33.pdf");
}
function draw(){
//fading rect
fill(86,120,60);
rect(0,0,width,height);
////////
var x=0;
translate(width/2,height/2);
while(x<50){
rotate(.2);
noFill();
stroke(148,210,102);
triangle(350,350,400,x,x,x);
stroke(234,232,35,100);
noFill();
triangle(350,450,600,x,x,x);
x=x+0.2;
stroke(91,51,104);
square(x,x,20);
}
///////
var x2=100;
while(x2<150){
rotate(.2);
stroke(244,140,56);
fill(100,145,23);
line(x2,x2,x2,x2);
x2=x2+0.2;
fill(244,116,48,10);
square(x2,x2,100);
}
///////
var x3=200;
while(x3<250){
rotate(.2);
fill(44,30,200,10);
rect(x2,x2,100,200);
x3=x3+.3;
fill(20);
line(x3,x3,x3,x3);
stroke(213,118,222);
fill(213,168,222,150);
circle(x3,x3,10);
noFill();
circle(x3,x3,200);
fill(234,232,35);
}
//if(mousePressed && mouseButton==RIGHT){
//endRecord();
}