POV-Ray : Newsgroups : povray.programming : Combining POV-Ray colors in a program. : Re: Combining POV-Ray colors in a program. Server Time
1 Jun 2024 06:28:14 EDT (-0400)
  Re: Combining POV-Ray colors in a program.  
From: Christoph Hormann
Date: 1 Oct 2005 03:25:01
Message: <dhldbb$2l0$1@chho.imagico.de>
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

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