rlh2@ukc.ac.uk (Richard Hesketh) (09/30/89)
I got some code from comp.windows.x the other week for doing rgb to hue saturation and value conversions. So I encorporated it into a small rgb palette editor .. so that you can see the relationship between rgb and hsv interactively. However the code produces inconsistent results. Which makes it difficult to use for a direct manipulation user interface where the user can change either rgb or hsv values via sliders and watch the corresponding sliders change. So has anybody got any code that does rgb to hsv and hsv to rgb value conversion, preferably in C although I'm willing to take Fortran 8-). Thanks in advance, Richard Richard Hesketh : rlh2@ukc.ac.uk ..!mcvax!ukc!rlh2 : @nsfnet-relay.ac.uk:rlh2@ukc.ac.uk --- Computing Lab., University of Kent at Canterbury, Canterbury, Kent, CT2 7NF, United Kingdom. Tel: (0227) 764000 ext. 3682