Your assignment today is to write an Allegro program which has 6 rects that'll act as buttons. 2 buttons for each color, r, g, b. One button per color for up and down. Below each pair of buttons, display a number ranging from 0 to 255. There will also be a circle on the screen whose color is whatever color is dictated by the 3 values for r, g, b. There sould also be a button for resetting colors and a button for generating random comolrs. The program should exit when the user hits escape.
Here's a sample screenshot:
.
No comments:
Post a Comment