import java.awt.Color; import java.util.Scanner; public class ClientFish{ private static final double WH = 60; public static void main (String[]args){ StdDraw.setXscale (0, WH); StdDraw.setYscale (0, WH); Scanner sc = new Scanner(System.in); double x = sc.nextDouble() ,y = sc.nextDouble() ,w = sc.nextDouble() ,h = sc.nextDouble() ; int r = sc.nextInt() ,g = sc.nextInt() ,b = sc.nextInt() ; //------------------------------------------------------------ // change true to false if you don't want to see it //------------------------------------------------------------ drawGrid( true ); //------------------------------------------------------------ // change ONLY THE INITIALS and the IDENTIFIER // **and** you'll need to comment out the call to setColor // until you've written this method for your fish //------------------------------------------------------------ Fish_LD sammy = new Fish_LD( x,y, w,h ); sammy.setColor( new Color(r,g,b) ); } // You may or may not find this helpful as you are designing your fish public static void drawGrid( boolean showGrid ){ if ( showGrid ){ StdDraw.setPenColor( new Color(100,100,100) ); for (int i=1;i<6;i++) { StdDraw.line(i*10,0 , i*10,WH); StdDraw.line(0,i*10 , WH,i*10); } } } }