A Scheme program that generates a given RGB color's complement, analogous colors, tints, shades and triad range.
Procedure
ultimate-color-scheme
Parameters
rgb, an integer
Purpose
To generate a variety of different variations of rgb.
Produces
disp, a display showing rgb's complement, analogous colors, tints, shades and triad range.
Preconditions
rgb must be a valid and defined rgb value.
Postconditions
when the procedure is applied to disp's complement value, rgb is returned
Inspired by a Sam Rebelsky problem in CSC 151 at Grinnell College.