COLORS.BAS was an example program provided with QuickBASIC. It’s a very simple graphics demo, but I thought it would be a neat candidate for porting to C (kind of a learning exercise). I used Watcom C that is provided with FreeDOS, so you’ll need FreeDOS, DOSBox, or even an old computer with MS-DOS on it if you want to run it. Source code is provided.
Download COLORS (ported to C) for MS-DOS
CRC-32 of ZIP file: C35B83D7
Original COLORS demo in QuickBASIC
Demo of C version