POV-Ray : Newsgroups : povray.general : Simple math question : Re: Simple math question Server Time
30 Jul 2024 12:26:10 EDT (-0400)
  Re: Simple math question  
From: triple r
Date: 14 Feb 2009 17:20:00
Message: <web.49974350240b718bef2b9ba40@news.povray.org>
some_yahoo <209### [at] gmailcom> wrote:
> Trying to render something in a sequence of colors using an animation.  Lets just
say they are web buttons. I provide

> this color cube source to illustrate that I am getting a lot of missing colors. 
What I really need is a function tha
t
> converts a float (0..1) into an rgb value such that from 0 to 1 all colors are
represented (with enough granularity).


Is there a reason the HSV or HSL color model would not work?  That way you could
use a nested loop to achieve a range of all colors, all saturations, and all
brightnesses in a very controlled fashion.

http://www.povray.org/documentation/view/3.6.1/434/

 - Ricky


Post a reply to this message

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