Developer Documentation
|
Implementation of halton colors Provides deterministic pseudo-random low-discrepancy colors with a uniform distribution over a visually pleasing subset of HSL space, independent of the number of colors required. Simply instantiate and use get_next_color(). More...
#include <ACG/Utils/HaltonColors.hh>
Public Member Functions | |
HaltonColors (int skip=250) | |
Default constructor. | |
ACG::Vec4f | get_next_color () |
Generate the next color (legacy method) | |
virtual ACG::Vec4f | generateNextColor () |
Generate the next color. | |
Public Member Functions inherited from ACG::ColorGenerator | |
template<class OUTPUT_ITERATOR > | |
void | generateNextNColors (int n, OUTPUT_ITERATOR oit) |
Private Member Functions | |
float | halton (int index) |
float | random_interval (int index, float min, float max) |
ACG::Vec4f | HSL2RGB (double h, double sl, double l) |
Private Attributes | |
int | current [3] |
int | bases [3] |
float | inverse_bases [3] |
Implementation of halton colors Provides deterministic pseudo-random low-discrepancy colors with a uniform distribution over a visually pleasing subset of HSL space, independent of the number of colors required. Simply instantiate and use get_next_color().
Definition at line 80 of file HaltonColors.hh.