PennDraw.java
/**
     * Clear the screen to the given color.
     * @param color the Color to make the background
     */
Clear the screen to the given color.
@param color the Color to make the background
Clear the screen to the given color . @param color the Color to make the background
public static void clear(Color color) {
        offscreen.setColor(color);
        filledRectangle(0.5 * (xmax + xmin), 0.5 * (ymax + ymin),
                        0.5 * (xmax - xmin), 0.5 * (ymax - ymin));
        offscreen.setColor(penColor);
        draw();
    }
public static void clear ( Color color ) { offscreen . setColor ( color ) ; filledRectangle ( 0.5 * ( xmax + xmin ) , 0.5 * ( ymax + ymin ) , 0.5 * ( xmax - xmin ) , 0.5 * ( ymax - ymin ) ) ; offscreen . setColor ( penColor ) ; draw ( ) ; }
Clear the screen to the given color.
Clear the screen to the given color .