int XSIZE = 600; int YSIZE = 600; int MaxColors = 256; float [][]clr; void LUT() { float freq_r = 0.5; float freq_g = 0.5; float freq_b = .99; float amp_r = 1.0; float amp_g = 1.7; float amp_b = 1.0; clr = new float[3][MaxColors]; //initialize clr for (int x=0;x 255) a = 255; else if (a < 0) a = 0; color c = color(clr[0][int(a)],clr[1][int(a)],clr[2][int(a)]); set(x,y,c); } } saveFrame("mbsine.tiff"); }