Creating a pattern of colors from an array
in
Programming Questions
•
2 years ago
Hi guys,
This is my first time using processing and I am still getting used to it but I'm trying to learn as much as I can. For my project I will be using OpenCV to read another computer monitor and analyze the pixel values from four quadrants of the display.
I am trying to create an array of colors that will be displayed in sequence by the four rectangular sections. For example, the first color (let's say blue) will fill the top right section, then the bottom right quadrant will change to blue as the next color in the array (red) replaces it in the top right sector. This sequence will repeat until blue has rotated into the upper right sector and is then discarded. This will continue until all colors in the array have been displayed and rotated throughout the quadrants, eventually reaching the end of the color array and displaying a blank screen.
I have been reading many examples and tutorials but I cannot seem to figure out this specific problem, any help would be greatly appreciated!
Thank you.
-Max
This is my first time using processing and I am still getting used to it but I'm trying to learn as much as I can. For my project I will be using OpenCV to read another computer monitor and analyze the pixel values from four quadrants of the display.
I am trying to create an array of colors that will be displayed in sequence by the four rectangular sections. For example, the first color (let's say blue) will fill the top right section, then the bottom right quadrant will change to blue as the next color in the array (red) replaces it in the top right sector. This sequence will repeat until blue has rotated into the upper right sector and is then discarded. This will continue until all colors in the array have been displayed and rotated throughout the quadrants, eventually reaching the end of the color array and displaying a blank screen.
I have been reading many examples and tutorials but I cannot seem to figure out this specific problem, any help would be greatly appreciated!
Thank you.
-Max
1