// Generates a color map where values 2.0-3.0 // are blue, 3.0-4.0 are yellow, and >4.0 are red. //makeLut(); exit(); w = getWidth(); h = getHeight(); showStatus("Generating color map..."); a = newArray(w*h); red = 255<<16; green = 255<<8; blue = 255; yellow = red + green; i = 0; for (y=0; y=2 && v<=3) a[i] = blue; else if (v>3 && v<=4) a[i] = yellow; else if (v>4) a[i] = red; i++; } if (y%20==0) showProgress(i, w*h); } run("New...", "name=ColorMap type=RGB fill=White width="+w+" height="+h+" slices=1"); i = 0; for (y=0; y