xxxxxxxxxx
var t=0;
nInt=1;//noise intensity
nAmp=1;// noise Amplitude
var rad=50;
//var tchange=0.05;
function setup() {
createCanvas(windowWidth, windowHeight);
noiseDetail(2);
smooth();
}
function draw() {
translate(width/2,height/2);
background(255,50);
noisyCircle(1.1,1.1,0.008);
noisyCircle(1.3,1.1,0.008);
}
function noisyCircle(nInt,nAmp,tchange){
//background(200,100);
noFill();
//stroke(random(200),0,random(200));
//translate(width/4,height/4);
for(rad=6;rad<200;rad+=3){
//nAmp+=.0001;
nInt+=0.03;
beginShape();
for(var a=0;a<TWO_PI;a+=TWO_PI/300){
nVal=map(noise(cos(a)*nInt+1,sin(a)*nInt+1,t),0,1,nAmp,2);
x=cos(a)*rad*nVal;
y=sin(a)*rad*nVal;
vertex(x,y);
}
endShape(CLOSE);}
/*rad-=1;
if(rad<0){
rad=0;}*/
t+=tchange;
}