Commit fb73ad37 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

ACG: Added seed to HaltonColors.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16147 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 4aa7430c
......@@ -60,12 +60,12 @@ namespace ACG {
//== CLASS IMPLEMENTATION =========================================================
HaltonColors::HaltonColors()
HaltonColors::HaltonColors(int skip)
{
// skip first 250 sequence elements to lower discrepancy even further.
current[0] = 250;
current[1] = 250;
current[2] = 250;
current[0] = skip;
current[1] = skip;
current[2] = skip;
// initialize prime bases for H,S,L. Especially the first should be small such that already
// small numbers of generated colors are distributed over the whole color circle.
......
......@@ -74,7 +74,7 @@ class ACGDLLEXPORT HaltonColors {
public:
/// Default constructor
HaltonColors();
HaltonColors(int skip = 250);
/// Generate the next color
ACG::Vec4f get_next_color();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment