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...




  1. 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.



Mar 26, 2021
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here