/** * Wave Gradient * by Ira Greenberg. * * Generate a gradient along a sin() wave. */ float angle = 0; float px = 0, py = 0; float amplitude = 30; float frequency = 0; float fillGap = 2.5; color c; void setup() { size(200, 200); background(200,200,200); noLoop(); } void draw() { for (int i =- 75; i < height+75; i++){ // Reset angle to 0, so waves stack properly angle = 0; // Increasing frequency causes more gaps frequency+=.006; for (float j=0; j