MEDA 102 Digital Coding Assignment

In my sketch I tried to use the perlin noise function in processing to replicate images of highways under long exposure  where the yellow and red lights of the cars blur into moving lines that wrap and weave into each other. I chose to leave the background white as the lines lost the glowy effect.

 

void setup() {
size(800, 400); background(245);
noFill(); strokeWeight (0.5);
//noLoop();
 frameRate(60); //code refresh rate
}
float movement = 0;
float perlinResolution = 600;//affects the amplitude of the lines
float radius, resolution = 400;
float t= 0;

void draw() {
 PerlinNoise2();//redder lines
PerlinNoise();//yellower lines
PerlinNoise3();//red lines 2
PerlinNoise4();//yellow lines 2




}

void PerlinNoise() //yellower lines
{
for (int lineCount = 0; lineCount < 700; lineCount = lineCount + 25) //changes spacing and number of lines 
{
beginShape();
for (int i = 0; i < 800; i = i + 30) {//changing the i + affects the number of lines
 stroke(random(220,255),random(200,255),random(200));
vertex( i, noise( i / perlinResolution, lineCount / perlinResolution) * 300 );//draws the lines. chnges the spread
}
endShape();
}
}

void PerlinNoise2() //redder lines
{
for (int lineCount = 0; lineCount < 440; lineCount = lineCount + 7) //changes spaing and number of lines 
{
beginShape();
for (int i = 0; i < 800; i = i + 4) {//changing the i + affects the number of lines
 stroke(random(220,255),random(100,200),random(200));
vertex( i, noise( i / perlinResolution, lineCount / perlinResolution) * 300 );//draws the lines. chnges the spread
}
endShape();
}
}

void PerlinNoise3() //redder lines bottom
{
for (int lineCount = 0; lineCount < 300; lineCount = lineCount + 7) //changes spaing and number of lines 
{
beginShape();
for (int i = 0; i < 800; i = i + 4) {//changing the i + affects the number of lines
 stroke(random(220,255),random(100,200),random(200));//makes the lines
vertex( i, noise( i / perlinResolution, lineCount / perlinResolution) * 500 );//draws the lines. chnges the spread
}
endShape();
}
}

void PerlinNoise4() //yellower lines bottom
{
for (int lineCount = 0; lineCount < 700; lineCount = lineCount + 25) //changes spacing and number of lines 
{
beginShape();
for (int i = 0; i < 800; i = i + 30) {//changing the i + affects the number of lines
 stroke(random(220,255),random(200,255),random(200));
vertex( i, noise( i / perlinResolution, lineCount / perlinResolution) * 500 );//draws the lines. chnges the spread
}
endShape();
}
}