The problem asks you to write a program DarkerDemo that constructs a Color object ( in my case the problem is telling me to make the object Color.RED), and apply the darker method twice, then print the red, green, and blue values of the resulting color (wont be able to actually see the color).
basically I need to create a color using the 0-255 color scale (or whatever you call it), I need to then make it darker by using the 'darker' method, and then I need to write the program to tell me what the new color scale numbers would be.
For example...
i input the color (255, 0, 255)
The program makes this color darker...
then tells me the new color in number form.
Color myColor = new Color(255,0,255);
myColor.darken();
myColor.darken();
System.out.println(myColor.getColor());
It should probably look something like this, aside from names etc. When you darken a color, each R/G/B value decreases. Do you understand how to go about it now?