public class Temp {

    public static void main(String[] args) throws Exception{
	StdDraw.setPenColor(StdDraw.MAGENTA);
	StdDraw.square(0.5, 0.5, 0.5);
	double x0 = 0.1;
	double y0 = 0.1;
	double x1 = 0.8;
	double y1 = 0.8;
	for (int k = 0; k < 5; k++) {
	    StdDraw.line(x0, y0, x1, y1);
	    x0 += 0.1;
	    x1 -= 0.1;
	}
	while (true) {
		double x = StdDraw.mouseX();
		double y = StdDraw.mouseY();
		Thread.sleep(500, 500);
		System.out.println(x + "  " + y);
	}
    }
}
