POV-Ray : Newsgroups : povray.binaries.programming : Colour space conversion code. Server Time
13 Oct 2024 01:02:29 EDT (-0400)
  Colour space conversion code. (Message 1 to 1 of 1)  
From: Vahur Krouverk
Subject: Colour space conversion code.
Date: 25 Aug 2000 03:48:13
Message: <39A624FD.AD304598@aetec.ee>
Hello!

This is my patched version of colour.c and colour.h. This patched
version includes conversion routine between RGB, HSL, HSV, XYZ, xyY, YIQ
colour spaces. 

Please note, that I changed return value of RGBtoHue to return
"standard" hue value and added function RGBtoSpecter for returning
"spectral value" of colour hue. If someone wants to use colour.c in
MegaPov, then files lighting.c and postproc.c should be changed
accordingly (replace RGBtoHue with RGBtoSpecter).

Another note: these files are in Unix format (includes only newline
character in the end of file).


Post a reply to this message


Attachments:
Download 'cspace.zip' (6 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.