xxxxxxxxxx
//PERLIN NOISE!!!!
var x;
var y;
var n = 0; //noise variable
var s = 0;
function setup() {
//put setup code here
createCanvas(400,200);
x=height/2
}
function draw() {
background(100);
fill(30,20,100);
//change x with perlin noise!!
x= noise(n)*width; //noise function to generate x position!
y = noise(s)*height;
s=s+0.04;
n=n+0.02; //increase noise variable by a tiny amount
ellipse(x,y,40,40);
}