Example #1
0
 private int convertColor(Color color) {
   int color2 = 0;
   color2 |= ((int) (255.0 * color.getAlpha())) << 24;
   color2 |= ((int) (255.0 * color.getBlue())) << 16;
   color2 |= ((int) (255.0 * color.getGreen())) << 8;
   color2 |= ((int) (255.0 * color.getRed()));
   return color2;
 }
Example #2
0
 private ColorRGBA convertColor(Color inColor, ColorRGBA outColor) {
   return outColor.set(
       inColor.getRed(), inColor.getGreen(), inColor.getBlue(), inColor.getAlpha());
 }