/* Some Line Making Functions: 1. Squiggle 2. Spray */ //1. The Squiggle Function void drawSquiggle(int points, int vLocation, float squiggleness){ float steps=points+1; float rand=0; for (int i=1; i< steps; i++){ point((width/steps)*i, (vLocation)+random(-rand, rand)); rand+=random(-squiggleness,squiggleness); } } //2. The MODIFIED Particle "Spray" Function // includes 4th parameter "squiggleness" for Vert Mousing void drawSpray(int points, int vLocation, float spraySpread, float squiggleness){ float steps = points+1; float rand=0; for (int i=1; i< steps; i++){ point((width/steps)*i, (vLocation)+random(-rand, rand)); rand+=spraySpread+random(-squiggleness,squiggleness); } }