xxxxxxxxxx
int ch=10,deelay=0, cw=10,nimu=500,namu=0,orf=10,hw,hh;
float g=0.0,vel=0.5,a,b,x,y, lalu=0.1, lilu=1,zMax;
boolean fireFrame=true;
boolean sketchFullScreen(){return true;}
void setup(){
size(800,450,P3D);
background(255);
hw=width/2;
hh=height/2;
zMax=sqrt(pow(hw,2)+pow(hh,2));
}
void draw(){
stroke(0);
strokeWeight(1);
noFill();
background(255);
beginShape();
for(float n=g,p=0;p<=zMax;n+=lalu,p+=lilu){
vertex(cos(n)*p+hw,sin(n)*p+hh,0);
}
endShape();
g+=vel;
if(g>=TWO_PI){g=0;}
if(mousePressed){
if(deelay==frameRate*2){
fill(255,0,0);
rect(0,0,100,1);
noFill();
vel+=(pmouseY-mouseY)/10000.0;
}
lalu+=(pmouseX-mouseX)/1000.0;
if(lilu>0.00001){lilu+=(pmouseY-mouseY)/1000.0;}
}else{deelay=0;}
}