 		 */
 		public static function line(x1:int, y1:int, x2:int, y2:int, color:uint = 0xFFFFFF):void
 		{
-			color &= 0xFFFFFF;
+			if (color < 0xFF000000) color = 0xFF000000 | color;
 			
 			// get the drawing positions
 			x1 -= _camera.x;

						c -= 1;
					}
				}
				screen.setPixel(x2, y2, color);
				return;
			}
			else

				c = .5;
				while (x1 != x2)
				{
					screen.setPixel32(x1, y1, color);
					x1 += xx;
					c += slope;
					if (c >= 1)
