Java Create a rainbow color - how?

I like to show the colors of the rainbow in java, so the color is the first time: red, then light red .. then orange light orange, yellow ... etc.

How can i do this?

+3
source share
2 answers

For rainbow colors, I would suggest the HSV color space (color gamma saturation). For all colors of the rainbow, just go through the shade.

+4
source

A few tips:

+1

Source: https://habr.com/ru/post/1787953/


All Articles