@@ -0,0 +1,1358 @@
+package jgame;%0A%0A/** Minimal replacement of java.awt.Color. */%0Apublic class JGColor %7B%0A%0A%09public static final JGColor black = new JGColor(0,0,0);%0A%09public static final JGColor white = new JGColor(255,255,255);%0A%09public static final JGColor yellow= new JGColor(255,255,0);%0A%09public static final JGColor green = new JGColor(0,255,0);%0A%09public static final JGColor cyan  = new JGColor(0,255,255);%0A%09public static final JGColor blue  = new JGColor(0,0,255);%0A%09public static final JGColor magenta= new JGColor(255,0,255);%0A%09public static final JGColor red   = new JGColor(255,0,0);%0A%0A%09public static final JGColor pink  = new JGColor(255,140,140);%0A%09public static final JGColor orange= new JGColor(255,140,0);%0A%0A%09/** a value between 0 and 255 */%0A%09public int r,g,b;%0A%09/** a value between 0 and 255, default is 255 (opaque) */%0A%09public int alpha=255;%0A%0A%09public Object impl;%0A%0A%09public JGColor (int r,int g,int b) %7B%0A%09%09this.r=r;%0A%09%09this.g=g;%0A%09%09this.b=b;%0A%09%7D%0A%0A%09public JGColor (int r,int g,int b,int alpha) %7B%0A%09%09this.r=r;%0A%09%09this.g=g;%0A%09%09this.b=b;%0A%09%09this.alpha=alpha;%0A%09%7D%0A%0A%09public JGColor (double r,double g,double b) %7B%0A%09%09this.r = (int)(r*255.95);%0A%09%09this.g = (int)(g*255.95);%0A%09%09this.b = (int)(b*255.95);%0A%09%7D%0A%0A%09public JGColor (double r,double g,double b,double alpha) %7B%0A%09%09this.r = (int)(r*255.95);%0A%09%09this.g = (int)(g*255.95);%0A%09%09this.b = (int)(b*255.95);%0A%09%09this.alpha = (int)(alpha*255.95);%0A%09%7D%0A%0A%7D%0A

Create JGColor.java