import java.awt.Color; public class PolyStartClient { public static void main(String[] args) { double p2[][] = { // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 { 2 , 2, 9.5, 7, 2, 6, 18, 19, 16, 16,15,12,12,15,17,17 } ,{ 18.5, 11, 11, 5, 6, 2, 1, 2, 2, 3, 5, 3,5, 8,5, 10 } }; StdDraw.setXscale (0, 20); StdDraw.setYscale (0, 20); //-------------------------------------------------------------- // crazy magenta polygon //-------------------------------------------------------------- StdDraw.setPenColor ( Color.MAGENTA ); // array for x , array for y StdDraw.polygon ( p2[0], p2[1] ); } }