// Helene Martin, CSE 142 // Prompts the user for the position and color of a circle. import java.awt.*; import java.util.*; public class ScannerDrawing { public static void main(String[] args) { Scanner console = new Scanner(System.in); System.out.print("x, y coord? "); int x = console.nextInt(); int y = console.nextInt(); System.out.print("red, green, blue (0-255)? "); int red = console.nextInt(); int green = console.nextInt(); int blue = console.nextInt(); DrawingPanel p = new DrawingPanel(400, 400); Graphics g = p.getGraphics(); Color myColor = new Color(red, green, blue); g.setColor(myColor); g.fillOval(x, y, 40, 40); } }