|
Re: LUTs Tool, Changing the icons ?: msg#00309java.imagej
On Thursday 30 March 2006 15:38, Tony Collins wrote: > Could you use the isKeyDown("shift") to cycle backwards? Yes, good idea. Below is the new version. If anybody wants to add more LUTs, change the 3s in if (GLlut<0) GLlut=3; if (GLlut>3) GLlut=0; for the number of LUTs-1. Cheers, Gabriel //-------------------->8-------------------- var GLlut=0; macro "Look Up Tables Tool-C900L222eCf00L323eCfa0L424eCff5L525eCde7L626eC7f0L727eCbfdL828eC7ffL929eC58fLa2aeC60fLb2beCd0dLc2ceCf8fLd2deCfcfLe2eeCfffLf2fe"{ restorePreviousTool(); } macro "Look Up Tables Tool Selected" { if (isKeyDown("shift")) GLlut-=1; else GLlut+=1; if (GLlut<0) GLlut=3; if (GLlut>3) GLlut=0; if (bitDepth()!=24){ if (GLlut==1) run("Fire"); else if (GLlut==2) run("Spectrum"); else if (GLlut==3) run("Ice"); else if (GLlut==0) run("Grays"); } restorePreviousTool(); } //-------------------->8--------------------
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: displaying JPEG image from array of byte, Curtis Rueden |
|---|---|
| Next by Date: | : RE SUB PIXEL Estimation, Goldsmith, Noel |
| Previous by Thread: | Re: LUTs Tool, Changing the icons ?, Tony Collins |
| Next by Thread: | Re: LUTs Tool, Changing the icons ?, Gabriel Landini |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |