PALETTE (located in \TOOLKIT\SAMPLES\PM\PALETTE) demonstrates 32-bit graphics functions including:
When started, PALETTE displays a standard window with a large OS/2 logo in the foreground. You have the ability to change the OS/2 logo to the IBM logo. If you resize the window, the logo is scaled and redrawn to fit the new window size. You can also control the animation speed from the PALETTE menu.
The animation is performed by:
Each line is drawn with an incremental color index. Palette animation is performed using the 32-bit GpiAnimatePalette function.
In order for PALETTE to remain responsive to system and user messages, no animation is performed on the main window procedure thread. A second thread is created from which all animation is performed.
Hardware requirements: