float noiseVal; float noiseScale = 0.005; float noiseCount = 0.0; float noiseSpeed = 0.05; float xCount, xSpeed; float yCount, ySpeed; float theta; float angle; float angleDelta; float xv, yv; float speed = 10; boolean lines = true; int noiseRes = 8; int xSize = 600; int ySize = 600; float randomx = xSize/2 + random(-200.0f, 200.0f); float randomy = ySize/2 + random(-200.0f, 200.0f); Vehicle[][] vehicle; int xTotal = int(xSize / noiseRes); int yTotal = int(ySize / noiseRes); void setup(){ size(xSize,ySize); smooth(); ellipseMode(CENTER_DIAMETER); colorMode(RGB, 360); background(360); noiseDetail((int)random(4.0,8.0), random(0.2f,0.8f)); float noiseScale = random(0.001, 0.03); vehicle = new Vehicle[yTotal][xTotal]; for (int y=0; y width + 50){ x -= width + 100; } if (y < -50){ y += height + 100; } else if (y > height + 50){ y -= height + 100; } */ } void render(){ stroke(0,(angle - 180)/100.0f + 2); line(x,y, x+xv, y+yv); } }