|
|
Allen wrote:
> I've been working on a program for a while that is a color picker.
> Currently it only supports red, green, blue, and transmit, but I would like
> to add filter support as well. What I need to know is the math used to
> create a preview color from a solid background color and a foreground color
> containing transmit and filter values. I've looked through the source code
> for POV-Ray, but have some difficulty in understanding some of it. I would
> greatly appreciate it if anyone could help me out.
You should have a look at the docs, section 3.2.1.5 'Specifying Colors'.
This pretty well explains the meaning of the color vector components.
You won't find a formula for this in the POV-Ray source since there
isn't any place where this needs to be calculated.
Christoph
--
POV-Ray tutorials, include files, Landscape of the week:
http://www.tu-bs.de/~y0013390/ (Last updated 24 Jul. 2005)
MegaPOV with mechanics simulation: http://megapov.inetart.net/
Post a reply to this message
|
|