mpicbg.util
Class ColorStream

java.lang.Object
  extended by mpicbg.util.ColorStream

public class ColorStream
extends Object

Generate a stream of `random' saturated RGB colors with all colors being maximally distinct from each other.

Author:
Stephan Saalfeld

Field Summary
protected static double[] bs
           
protected static double goldenRatio
           
protected static double[] gs
           
protected static double[] rs
           
 
Constructor Summary
ColorStream()
           
 
Method Summary
protected static int argb(int r, int g, int b)
           
protected static int interpolate(double[] xs, int k, int l, double u, double v)
           
static int next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

goldenRatio

protected static final double goldenRatio

rs

protected static final double[] rs

gs

protected static final double[] gs

bs

protected static final double[] bs
Constructor Detail

ColorStream

public ColorStream()
Method Detail

interpolate

protected static final int interpolate(double[] xs,
                                       int k,
                                       int l,
                                       double u,
                                       double v)

argb

protected static final int argb(int r,
                                int g,
                                int b)

next

public static final int next()


Copyright © 2007-2016 Fiji. All Rights Reserved.