You're certainly welcome to request something else but how do we know what you want if you don't explain what about the working option isn't what you want.
As far as I can tell, your original code looked just fine. All you need to do to add a "random" option is to add a "Random" option to the menu and if that option is chosen then use random values for RGB instead of the values from the array. The easiest would be to add the "Random" option as the last menu option (after your for loop). Then in the menu handler check if iItem is equal to sizeof(g_Colors) then use random values otherwise, index g_Colors like you already do.
Quote:
Originally Posted by amirwolf
I used this method to reach Rahel
|
What does this mean? Can you translate this to English?
__________________