@@ -0,0 +1,1065 @@
+%0A%0Apackage org.glob3.mobile.utils;%0A%0Aimport org.glob3.mobile.generated.Color;%0A%0A%0Apublic class ColorUtils %7B%0A%0A%0A   public static double normalize(final double value,%0A                                  final double max,%0A                                  final double min,%0A                                  final double new_max,%0A                                  final double new_min) %7B%0A      return (((value - min) / (max - min)) * (new_max - new_min)) + new_min;%0A   %7D%0A%0A%0A   public static Color fromRGBAInt(final int r,%0A                                   final int g,%0A                                   final int b,%0A                                   final float A) %7B%0A      return Color.fromRGBA((float) normalize(r, 255, 0, 1, 0), (float) normalize(g, 255, 0, 1, 0),%0A               (float) normalize(b, 255, 0, 1, 0), A);%0A   %7D%0A%0A%0A   public static int toAndroidColor(final Color c) %7B%0A      return android.graphics.Color.argb(Math.round(c.getAlpha() * 255), Math.round(c.getRed() * 255),%0A               Math.round(c.getGreen() * 255), Math.round(c.getBlue() * 255));%0A   %7D%0A%0A%0A%7D%0A

add color utils