COLOR_BLACK = new Color (this, 0,0,0); COLOR_DARK_RED = new Color (this, 0x80,0,0); COLOR_DARK_GREEN = new Color (this, 0,0x80,0); COLOR_DARK_YELLOW = new Color (this, 0x80,0x80,0); COLOR_DARK_BLUE = new Color (this, 0,0,0x80); COLOR_DARK_MAGENTA = new Color (this, 0x80,0,0x80); COLOR_DARK_CYAN = new Color (this, 0,0x80,0x80); COLOR_GRAY = new Color (this, 0xC0,0xC0,0xC0); COLOR_DARK_GRAY = new Color (this, 0x80,0x80,0x80); COLOR_RED = new Color (this, 0xFF,0,0); COLOR_GREEN = new Color (this, 0,0xFF,0); COLOR_YELLOW = new Color (this, 0xFF,0xFF,0); COLOR_BLUE = new Color (this, 0,0,0xFF); COLOR_MAGENTA = new Color (this, 0xFF,0,0xFF); COLOR_CYAN = new Color (this, 0,0xFF,0xFF); COLOR_WHITE = new Color (this, 0xFF,0xFF,0xFF);
COLOR_BLACK = 		Color.carbon_new(this, 0x000000); COLOR_DARK_RED = 	Color.carbon_new(this, 0x800000); COLOR_DARK_GREEN = 	Color.carbon_new(this, 0x008000); COLOR_DARK_YELLOW = Color.carbon_new(this, 0x808000); COLOR_DARK_BLUE = 	Color.carbon_new(this, 0x000080); COLOR_DARK_MAGENTA =Color.carbon_new(this, 0x800080); COLOR_DARK_CYAN = 	Color.carbon_new(this, 0x008080); COLOR_GRAY = 		Color.carbon_new(this, 0xC0C0C0); COLOR_DARK_GRAY = 	Color.carbon_new(this, 0x808080); COLOR_RED = 		Color.carbon_new(this, 0xFF0000); COLOR_GREEN = 		Color.carbon_new(this, 0x00FF00); COLOR_YELLOW = 		Color.carbon_new(this, 0xFFFF00); COLOR_BLUE = 		Color.carbon_new(this, 0x0000FF); COLOR_MAGENTA = 	Color.carbon_new(this, 0xFF00FF); COLOR_CYAN = 		Color.carbon_new(this, 0x00FFFF); COLOR_WHITE = 		Color.carbon_new(this, 0xFFFFFF);
protected void init () {	// AW	int gdh= OS.GetMainDevice();	if (gdh != 0) {		for (int i= 32; i > 0; i--) {			if (OS.HasDepth(gdh, (short)i, (short)0, (short)1) == i) {				fScreenDepth= i;				//System.out.println("screendepth: " + fScreenDepth);				break;			}		}	}	if (fScreenDepth == 0)		fScreenDepth= 32;	// a guess	// AW		/*	* The following colors are listed in the Windows	* Programmer's Reference as the colors in the default	* palette.	*/	COLOR_BLACK = new Color (this, 0,0,0);	COLOR_DARK_RED = new Color (this, 0x80,0,0);	COLOR_DARK_GREEN = new Color (this, 0,0x80,0);	COLOR_DARK_YELLOW = new Color (this, 0x80,0x80,0);	COLOR_DARK_BLUE = new Color (this, 0,0,0x80);	COLOR_DARK_MAGENTA = new Color (this, 0x80,0,0x80);	COLOR_DARK_CYAN = new Color (this, 0,0x80,0x80);	COLOR_GRAY = new Color (this, 0xC0,0xC0,0xC0);	COLOR_DARK_GRAY = new Color (this, 0x80,0x80,0x80);	COLOR_RED = new Color (this, 0xFF,0,0);	COLOR_GREEN = new Color (this, 0,0xFF,0);	COLOR_YELLOW = new Color (this, 0xFF,0xFF,0);	COLOR_BLUE = new Color (this, 0,0,0xFF);	COLOR_MAGENTA = new Color (this, 0xFF,0,0xFF);	COLOR_CYAN = new Color (this, 0,0xFF,0xFF);	COLOR_WHITE = new Color (this, 0xFF,0xFF,0xFF);}