Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }