hi everyone, as the title says, an error will appear everytime i want to run the coding, ut i checked several times and cant find the problem, please help me…
float step=TWO_PI/10;
float t=0;
void setup()
{
size(400,400);
background(10,10,10);
frameRate(30);
}
void draw()
{
fill(0);
noStroke();
rect(0,0,width,height);
int cycleLength=200;
float n=t%cycleLength;
if(n>cycleLength/2){
n= cycleLength-n;
{
float m=n/60+1;
noFill();
for (int i=0; i<20; i++)
{
stroke(255-m120, 20+i10, m120);
strokeWeight(3+i/5);
waveCircle(100-i5, 250-i5, m(i+1)/8);
}
t++;
}
void waveCircle(int size, int twist, float t)
{
beginShape();
for(float theta=0; theta<=TWO_PI+3step; theta+=step)
{
float r1,r2;
r1=cos(theta)+1;
r2=sin(theta)+1;
float r=size+noise(r1, r2, t)twist;
float x=width/2+rcos(theta);
float y=height/2+rsin(theta);
curveVertex(x,y);
}
endShape();
}