001package algs11;
002import stdlib.*;
003/* ***********************************************************************
004 *  Compilation:  javac ZRightTriangle.java
005 *  Execution:    java ZRightTriangle
006 *
007 *  Draws a right triangle and a circumscribing circle.
008 *
009 *************************************************************************/
010
011public class XDrawRightTriangle {
012
013        public static void main(String[] args) {
014                StdDraw.square(.5, .5, .5);
015                StdDraw.setPenColor(StdDraw.BLUE);
016                StdDraw.line(.5, .5, .9, .5);
017                StdDraw.line(.9, .5, .5, .8);
018                StdDraw.line(.5, .8, .5, .5);
019                StdDraw.circle(.7, .65, .25);
020        }
021}