In this assignment, you need to create a vertical rainbow with the colors ROYGBIV that fills the entire canvas, looking like this:
The requirements:
- Each stripe should be equal in width and height.
- You should use the const variables COLOR_COUNT (the number of colors), COLOR_WIDTH (the width of each color), and COLOR_HEIGHT (the height of each color) to set the dimensions and positions of your stripes throughout the program. In other words, if you were to change the value of COLOR_COUNT, then your final drawing will have stripes of different widths.
- The functions getWidth() and getHeight() should be used to calculate the values of the above const variables.
- [FOR THIS NEW EXERCISE] You should only have one function, but seven different calls to that function.