Write a program which asks the user to enter an RGB color. Next, construct an array of 50 Colors. Fill this array with 50 randomly generated colors for which each of the three components is randomly generated, and within 20 of the color you entered. Next, in a graphics JFrame and JPanel, construct 50 circles with randomly generatedxandycoordinates for the circle center, and randomly generated radiusr. Your circles should have radius between 10 and 150. In a for loop, create your circles, and fill in each with the corresponding color from your color array.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here