Пример #1
0
 public void setOflowColor(double frac) {
   int fc = cminfo.getFirstColor();
   int lc = cminfo.getLastColor();
   int color = (int) (fc + frac * (lc - fc) + 0.5);
   cminfo.setOflowColor(color);
   colorLookupTable.setOflowColor(color);
 }
Пример #2
0
 public void setTopColorToUse(double frac) {
   topFrac = frac;
   int fc = cminfo.getFirstColor();
   int lc = cminfo.getLastColor();
   topColorToUse = (int) (fc + frac * (lc - fc) + 0.5);
 }
Пример #3
0
 public void setBottomColorToUse(double frac) {
   bottomFrac = frac;
   int fc = cminfo.getFirstColor();
   int lc = cminfo.getLastColor();
   bottomColorToUse = (int) (fc + frac * (lc - fc) + 0.5);
 }