Challenge
Consider the rainbow as seven colours, represented by strings as Red Orange Yellow Green Blue Indigo Violet
.
Your task is to create a program that receives one of these colours as input and outputs next in order rainbow colour. This includes overlapping Violet -> Red
Input
A string containing one of rainbow colours.
Output
The next in order colour of the rainbow.
Rules
- Colour names are case sensitive. They must match the case included in this post.
- The input will always be valid. Any behavior is allowed for invalid input.
- This is code golf, so the shortest amount of bytes wins!
Example Input and Output
Input -> Output
Red -> Orange
Orange -> Yellow
Yellow -> Green
Green -> Blue
Blue -> Indigo
Indigo -> Violet
Violet -> Red
Provide at least one example input and output. Make sure they match your own description of what the input should look like.
\$\endgroup\$