xxxxxxxxxx
18
class Shapes{
constructor(x){
this.x=x
this.xoff=this.x
this.n=0
}
Line() {
stroke(255)
strokeWeight(5)
line(this.n,0,this.n,400)
//xoff is the variable used for the argument of noise()
this.xoff+=0.01
//the values are enhanced by a factor equivalent to the height
this.n=noise(this.xoff-this.x)*height
}
}