I d like to show rainbow colors in java, so the color first time: red, then light red.. then orange light orange, yellow...etc..
How i can do this?
For rainbow colors I would suggets HSV (Hue-Saturation-Value) color space. For all rainbow colors just cycle through the hue.
A few hints:
paint
function of a component