Hi community,
I am working on this project which requires perlin noise values around arbitrary values so that the the resulting sequences of perlin noise values have those values at their predefined locations and generate smooth transitions when visualized. Here is the code :
import peasy.PeasyCam;
PeasyCam cam;
float rotAngle = 0;
float frame = 0;
void setup() {
size(480, 640, P3D);
background(255);
frameRate(120);
cam = new PeasyCam(this, 1000);
}
void draw() {
background(255);
stroke(0);
translate(0, -height/2, 0);
float yoff = 0;
for (int i = 0; i < 14; i++) {
pushMatrix();
yoff = 50*i;
translate(0, yoff, 0);
rotAngle = map(noise(yoff/500, frame), 0, 1, -PI/3, PI/3);
rotateZ(rotAngle);
line(-200, 0, 200, 0);
popMatrix();
}
frame += .001;
}

This creates a column of horizontal lines which are rotated PI/3 radians clockwise to PI/3 radians anticlockwise, mapped by the 2D Perlin noise values generated using frame number and y location of line as inputs.
What if, say, the problem is to have the center line to be always perfectly horizontal and the other lines rotating around it with a smooth transition in harmony with that constant horizontal line in the center. I need a solution which allows me to give more than one arbitrary values and get perlin noise around those values.
Thanks !!