Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
For a value from 0.0 to 1.0, return three unsigned chars that when aligned show more or less a rainbow-like gradient (but for the real rainbow gradient see the Rainbow function), like the second row of the picture here. The full CLX code to obtain that picture is shown below the function.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.