link colrmodl
December 5, 1995; Ralph E. Griswold
This file is in the public domain.
These procedures convert between various color models. A color value is represented by a record (see the declarations below). Color values are normalized to a maximum of 1.0. ____________________________________________________________ Acknowledgement: Some of the procedures here are based on information given in Computer Graphics; Principles and Practice, second edition; James D. Foley, Andries van Dam, Steven K. Feiner, and John F. Hughes; Addison-Wesley Publishing Company; 1990. ____________________________________________________________ Note: These procedures have not been extensively tested. Those related to the YIQ model are particularly in question.