public static void clear(Color color){
  offscreen.setColor(color);
  offscreen.fillRect(0,0,width,height);
  offscreen.setColor(penColor);
  draw();
}

public static void clear ( Color color ) { offscreen . setColor ( color ) ; offscreen . fillRect ( 0 , 0 , width , height ) ; offscreen . setColor ( penColor ) ; draw ( ) ; }
clears the screen to the specified color .
