CompuServe Thread

#HSI to RGB to HSI

4 messages in this thread
#55881From: M2S/Phil CampJul 5, 1989 7:44 AM
I have some code to do conversion from RGB to HSV and back written in Pascal. It also uses REALs. I also tried to convert it to use integer math, but it never worked correctly. Let me take a look at it, it's been more than a year since I've played with that, maybe I'll find the problem this time around.
#55942From: ROBERT SALESASJul 5, 1989 6:08 PM
You must be my guardian angel! How is it you ALWAYS come to my rescue! I appreciate the effort. If you succeed without REALs I'd be mighty grateful!
#55943From: M2S/Phil CampJul 5, 1989 6:20 PM
Well I looked and looked, and I think I threw the source code away on one of my "cleaning" bindges… I have the non-working M2 integer math code, but no longer have the original Pascal source. It came out of a book from a University course in computer graphics… If I can remember which book, I can dig it out at the library…
#55974From: JEFFREY C. DEGEJul 5, 1989 9:03 PM
There is code (using reals, of course) for converting various color models in "Fundementals of Computer Graphics" by Foley and Vam Dam (Addison Wesley, 1982). Try a college library or bookstore ($45.95 when I took graphics, so try the library FIRST 😉