Standard Library procedure that converts from the RGB color system to the HSV color system.
For background information about color systems, see Understanding Color Systems in Chapter 11 of the PV-WAVE User's Guide.