Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ACG::HaltonColors Class Reference

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>

Inheritance diagram for ACG::HaltonColors:
ACG::ColorGenerator

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]
 

Detailed Description

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 73 of file HaltonColors.hh.


The documentation for this class was generated from the following files: