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

		}
		
		/**
		 * Draws a filled circle.
		 * @param	x			X position of the circle's center.
		 * @param	y			Y position of the circle's center.
		 * @param	radius		Radius of the circle.
		 * @param	color		Color of the circle.
		 * @param	alpha		Alpha of the circle.
		 */
		public static function circle(x:int, y:int, radius:Number, color:uint = 0x000000, alpha:Number = 1):void
		{
			_graphics.clear();
			_graphics.beginFill(color & 0xFFFFFF, alpha);
			_graphics.drawCircle(x - _camera.x, y - _camera.y, radius);
			_graphics.endFill();
			_target.draw(FP.sprite, null, null, blend);
		}
		

					}
				}
				screen.setPixel32(x2, y2, color);
			}
		}
		
